We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
Using Python 2.6.6 on CentOS, I'm unable to run the server with livereload:

```
[mkdocs@dev test-docs]$ python /home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py serve --dev-addr=0.0.0.0:8080
WARNING: Support for Python 2.6 will be dropped in the 1.0.0 release of MkDocs

INFO    -  Building documentation... 
INFO    -  Cleaning site directory 
[I 161205 22:16:26 server:283] Serving on http://0.0.0.0:8080
[I 161205 22:16:26 handlers:60] Start watching changes
Traceback (most recent call last):
  File "/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py", line 227, in <module>
    cli()
  File "/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py", line 127, in serve_command
    livereload=livereload
  File "/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/commands/serve.py", line 88, in serve
    _livereload(host, port, config, builder, tempdir)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/commands/serve.py", line 27, in _livereload
    server.serve(root=site_dir, host=host, port=int(port), restart_delay=0)
  File "/home/mkdocs/.local/lib/python2.6/site-packages/livereload/server.py", line 300, in serve
    LiveReloadHandler.start_tasks()
  File "/home/mkdocs/.local/lib/python2.6/site-packages/livereload/handlers.py", line 61, in start_tasks
    if not cls.watcher.start(cls.poll_tasks):
  File "/home/mkdocs/.local/lib/python2.6/site-packages/livereload/watcher.py", line 160, in start
    self.notifier = pyinotify.TornadoAsyncNotifier(
AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
```

I can workaround by using `--no-livereload`, but is there a way to get livereload working?

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 from __future__ import print_function
5 from setuptools import setup
6 import re
7 import os
8 import sys
9 
10 PY26 = sys.version_info[:2] == (2, 6)
11 
12 
13 long_description = (
14     "MkDocs is a fast, simple and downright gorgeous static site generator "
15     "that's geared towards building project documentation. Documentation "
16     "source files are written in Markdown, and configured with a single YAML "
17     "configuration file."
18 )
19 
20 
21 def get_version(package):
22     """Return package version as listed in `__version__` in `init.py`."""
23     init_py = open(os.path.join(package, '__init__.py')).read()
24     return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
25 
26 
27 def get_packages(package):
28     """Return root package and all sub-packages."""
29     return [dirpath
30             for dirpath, dirnames, filenames in os.walk(package)
31             if os.path.exists(os.path.join(dirpath, '__init__.py'))]
32 
33 
34 if sys.argv[-1] == 'publish':
35     if os.system("pip freeze | grep wheel"):
36         print("wheel not installed.\nUse `pip install wheel`.\nExiting.")
37         sys.exit()
38     if os.system("pip freeze | grep twine"):
39         print("twine not installed.\nUse `pip install twine`.\nExiting.")
40         sys.exit()
41     os.system("python setup.py sdist bdist_wheel")
42     os.system("twine upload dist/*")
43     print("You probably want to also tag the version now:")
44     print("  git tag -a {0} -m 'version {0}'".format(get_version("mkdocs")))
45     print("  git push --tags")
46     sys.exit()
47 
48 
49 setup(
50     name="mkdocs",
51     version=get_version("mkdocs"),
52     url='http://www.mkdocs.org',
53     license='BSD',
54     description='Project documentation with Markdown.',
55     long_description=long_description,
56     author='Tom Christie',
57     author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)
58     packages=get_packages("mkdocs"),
59     include_package_data=True,
60     install_requires=[
61         'click>=3.3',
62         'Jinja2>=2.7.1',
63         'livereload>=2.3.2',
64         'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',
65         'PyYAML>=3.10',
66         'tornado>=4.1',
67     ],
68     entry_points={
69         'console_scripts': [
70             'mkdocs = mkdocs.__main__:cli',
71         ],
72         'mkdocs.themes': [
73             'mkdocs = mkdocs.themes.mkdocs',
74             'readthedocs = mkdocs.themes.readthedocs',
75         ]
76     },
77     classifiers=[
78         'Development Status :: 5 - Production/Stable',
79         'Environment :: Console',
80         'Environment :: Web Environment',
81         'Intended Audience :: Developers',
82         'License :: OSI Approved :: BSD License',
83         'Operating System :: OS Independent',
84         'Programming Language :: Python',
85         'Programming Language :: Python :: 2',
86         'Programming Language :: Python :: 2.6',
87         'Programming Language :: Python :: 2.7',
88         'Programming Language :: Python :: 3',
89         'Programming Language :: Python :: 3.3',
90         'Programming Language :: Python :: 3.4',
91         'Programming Language :: Python :: 3.5',
92         "Programming Language :: Python :: Implementation :: CPython",
93         'Topic :: Documentation',
94         'Topic :: Text Processing',
95     ],
96     zip_safe=False,
97 )
98 
99 # (*) Please direct queries to the discussion group:
100 #     https://groups.google.com/forum/#!forum/mkdocs
101
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@
     install_requires=[
         'click>=3.3',
         'Jinja2>=2.7.1',
-        'livereload>=2.3.2',
+        'livereload>=2.5.1',
         'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',
         'PyYAML>=3.10',
         'tornado>=4.1',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -60,7 +60,7 @@\n     install_requires=[\n         'click>=3.3',\n         'Jinja2>=2.7.1',\n-        'livereload>=2.3.2',\n+        'livereload>=2.5.1',\n         'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n         'PyYAML>=3.10',\n         'tornado>=4.1',\n", "issue": "AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'\nUsing Python 2.6.6 on CentOS, I'm unable to run the server with livereload:\r\n\r\n```\r\n[mkdocs@dev test-docs]$ python /home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py serve --dev-addr=0.0.0.0:8080\r\nWARNING: Support for Python 2.6 will be dropped in the 1.0.0 release of MkDocs\r\n\r\nINFO    -  Building documentation... \r\nINFO    -  Cleaning site directory \r\n[I 161205 22:16:26 server:283] Serving on http://0.0.0.0:8080\r\n[I 161205 22:16:26 handlers:60] Start watching changes\r\nTraceback (most recent call last):\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py\", line 227, in <module>\r\n    cli()\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py\", line 716, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py\", line 696, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py\", line 1060, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py\", line 889, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/click/core.py\", line 534, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/__main__.py\", line 127, in serve_command\r\n    livereload=livereload\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/commands/serve.py\", line 88, in serve\r\n    _livereload(host, port, config, builder, tempdir)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/mkdocs/commands/serve.py\", line 27, in _livereload\r\n    server.serve(root=site_dir, host=host, port=int(port), restart_delay=0)\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/livereload/server.py\", line 300, in serve\r\n    LiveReloadHandler.start_tasks()\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/livereload/handlers.py\", line 61, in start_tasks\r\n    if not cls.watcher.start(cls.poll_tasks):\r\n  File \"/home/mkdocs/.local/lib/python2.6/site-packages/livereload/watcher.py\", line 160, in start\r\n    self.notifier = pyinotify.TornadoAsyncNotifier(\r\nAttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'\r\n```\r\n\r\nI can workaround by using `--no-livereload`, but is there a way to get livereload working?\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nlong_description = (\n    \"MkDocs is a fast, simple and downright gorgeous static site generator \"\n    \"that's geared towards building project documentation. Documentation \"\n    \"source files are written in Markdown, and configured with a single YAML \"\n    \"configuration file.\"\n)\n\n\ndef get_version(package):\n    \"\"\"Return package version as listed in `__version__` in `init.py`.\"\"\"\n    init_py = open(os.path.join(package, '__init__.py')).read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_packages(package):\n    \"\"\"Return root package and all sub-packages.\"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nif sys.argv[-1] == 'publish':\n    if os.system(\"pip freeze | grep wheel\"):\n        print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiting.\")\n        sys.exit()\n    if os.system(\"pip freeze | grep twine\"):\n        print(\"twine not installed.\\nUse `pip install twine`.\\nExiting.\")\n        sys.exit()\n    os.system(\"python setup.py sdist bdist_wheel\")\n    os.system(\"twine upload dist/*\")\n    print(\"You probably want to also tag the version now:\")\n    print(\"  git tag -a {0} -m 'version {0}'\".format(get_version(\"mkdocs\")))\n    print(\"  git push --tags\")\n    sys.exit()\n\n\nsetup(\n    name=\"mkdocs\",\n    version=get_version(\"mkdocs\"),\n    url='http://www.mkdocs.org',\n    license='BSD',\n    description='Project documentation with Markdown.',\n    long_description=long_description,\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)\n    packages=get_packages(\"mkdocs\"),\n    include_package_data=True,\n    install_requires=[\n        'click>=3.3',\n        'Jinja2>=2.7.1',\n        'livereload>=2.3.2',\n        'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n        'PyYAML>=3.10',\n        'tornado>=4.1',\n    ],\n    entry_points={\n        'console_scripts': [\n            'mkdocs = mkdocs.__main__:cli',\n        ],\n        'mkdocs.themes': [\n            'mkdocs = mkdocs.themes.mkdocs',\n            'readthedocs = mkdocs.themes.readthedocs',\n        ]\n    },\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        'Topic :: Documentation',\n        'Topic :: Text Processing',\n    ],\n    zip_safe=False,\n)\n\n# (*) Please direct queries to the discussion group:\n#     https://groups.google.com/forum/#!forum/mkdocs\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\nfrom setuptools import setup\nimport re\nimport os\nimport sys\n\nPY26 = sys.version_info[:2] == (2, 6)\n\n\nlong_description = (\n    \"MkDocs is a fast, simple and downright gorgeous static site generator \"\n    \"that's geared towards building project documentation. Documentation \"\n    \"source files are written in Markdown, and configured with a single YAML \"\n    \"configuration file.\"\n)\n\n\ndef get_version(package):\n    \"\"\"Return package version as listed in `__version__` in `init.py`.\"\"\"\n    init_py = open(os.path.join(package, '__init__.py')).read()\n    return re.search(\"__version__ = ['\\\"]([^'\\\"]+)['\\\"]\", init_py).group(1)\n\n\ndef get_packages(package):\n    \"\"\"Return root package and all sub-packages.\"\"\"\n    return [dirpath\n            for dirpath, dirnames, filenames in os.walk(package)\n            if os.path.exists(os.path.join(dirpath, '__init__.py'))]\n\n\nif sys.argv[-1] == 'publish':\n    if os.system(\"pip freeze | grep wheel\"):\n        print(\"wheel not installed.\\nUse `pip install wheel`.\\nExiting.\")\n        sys.exit()\n    if os.system(\"pip freeze | grep twine\"):\n        print(\"twine not installed.\\nUse `pip install twine`.\\nExiting.\")\n        sys.exit()\n    os.system(\"python setup.py sdist bdist_wheel\")\n    os.system(\"twine upload dist/*\")\n    print(\"You probably want to also tag the version now:\")\n    print(\"  git tag -a {0} -m 'version {0}'\".format(get_version(\"mkdocs\")))\n    print(\"  git push --tags\")\n    sys.exit()\n\n\nsetup(\n    name=\"mkdocs\",\n    version=get_version(\"mkdocs\"),\n    url='http://www.mkdocs.org',\n    license='BSD',\n    description='Project documentation with Markdown.',\n    long_description=long_description,\n    author='Tom Christie',\n    author_email='tom@tomchristie.com',  # SEE NOTE BELOW (*)\n    packages=get_packages(\"mkdocs\"),\n    include_package_data=True,\n    install_requires=[\n        'click>=3.3',\n        'Jinja2>=2.7.1',\n        'livereload>=2.5.1',\n        'Markdown>=2.3.1,<2.5' if PY26 else 'Markdown>=2.3.1',\n        'PyYAML>=3.10',\n        'tornado>=4.1',\n    ],\n    entry_points={\n        'console_scripts': [\n            'mkdocs = mkdocs.__main__:cli',\n        ],\n        'mkdocs.themes': [\n            'mkdocs = mkdocs.themes.mkdocs',\n            'readthedocs = mkdocs.themes.readthedocs',\n        ]\n    },\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Environment :: Web Environment',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: BSD License',\n        'Operating System :: OS Independent',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        'Topic :: Documentation',\n        'Topic :: Text Processing',\n    ],\n    zip_safe=False,\n)\n\n# (*) Please direct queries to the discussion group:\n#     https://groups.google.com/forum/#!forum/mkdocs\n", "path": "setup.py"}]}