We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Remove django 1.10 support
- Remove django 1.10 testenv from tox.ini
- Update django version in setup.py. Minimum django version is `1.11`.

--- 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 # -*- coding: utf-8 -*-
2 
3 import sys
4 
5 from setuptools import setup, find_packages
6 
7 
8 with open('VERSION.txt', 'r') as f:
9     pkg_version = f.read().strip()
10 
11 
12 def get_long_description():
13     with open('README.rst', 'r') as f:
14         return f.read()
15 
16 
17 install_requires = [
18     'PyMySQL == 0.7.11',
19     'beautifulsoup4 >= 4.1.1',
20     'celery == 4.1.0',
21     'django >= 1.10,<2.0',
22     'django-contrib-comments == 1.8.0',
23     'django-tinymce == 2.7.0',
24     'django-uuslug == 1.1.8',
25     'html2text',
26     'kobo == 0.7.0',
27     'odfpy >= 0.9.6',
28     'python-bugzilla',
29     'six',
30     'xmltodict',
31 ]
32 
33 if sys.version_info.major < 3:
34     install_requires += [
35         'enum34',
36     ]
37 
38 extras_require = {
39     # Required for tcms.core.contrib.auth.backends.KerberosBackend
40     'krbauth': [
41         'kerberos == 1.2.5'
42     ],
43 
44     # Packages for building documentation
45     'docs': [
46         'Sphinx >= 1.1.2',
47         'sphinx_rtd_theme',
48     ],
49 
50     # Necessary packages for running tests
51     'tests': [
52         'coverage',
53         'factory_boy',
54         'flake8',
55         'mock',
56         'pytest',
57         'pytest-cov',
58         'pytest-django',
59     ],
60 
61     # Contain tools that assists the development
62     'devtools': [
63         'django-debug-toolbar == 1.7',
64         'tox',
65         'django-extensions',
66         'pygraphviz',
67         'future-breakpoint',
68     ]
69 }
70 
71 
72 setup(
73     name='Nitrate',
74     version=pkg_version,
75     description='Test Case Management System',
76     long_description=get_long_description(),
77     author='Nitrate Team',
78     maintainer='Chenxiong Qi',
79     maintainer_email='qcxhome@gmail.com',
80     url='https://github.com/Nitrate/Nitrate/',
81     license='GPLv2+',
82     keywords='test case',
83     install_requires=install_requires,
84     extras_require=extras_require,
85     packages=find_packages(),
86     include_package_data=True,
87     classifiers=[
88         'Framework :: Django',
89         'Framework :: Django :: 1.10',
90         'Framework :: Django :: 1.11',
91         'Intended Audience :: Developers',
92         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
93         'Programming Language :: Python :: 2',
94         'Programming Language :: Python :: 2.7',
95         'Programming Language :: Python :: 3',
96         'Programming Language :: Python :: 3.6',
97         'Topic :: Software Development :: Quality Assurance',
98         'Topic :: Software Development :: Testing',
99     ],
100 )
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
@@ -18,7 +18,7 @@
     'PyMySQL == 0.7.11',
     'beautifulsoup4 >= 4.1.1',
     'celery == 4.1.0',
-    'django >= 1.10,<2.0',
+    'django >= 1.11,<2.0',
     'django-contrib-comments == 1.8.0',
     'django-tinymce == 2.7.0',
     'django-uuslug == 1.1.8',
@@ -86,7 +86,6 @@
     include_package_data=True,
     classifiers=[
         'Framework :: Django',
-        'Framework :: Django :: 1.10',
         'Framework :: Django :: 1.11',
         'Intended Audience :: Developers',
         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -18,7 +18,7 @@\n     'PyMySQL == 0.7.11',\n     'beautifulsoup4 >= 4.1.1',\n     'celery == 4.1.0',\n-    'django >= 1.10,<2.0',\n+    'django >= 1.11,<2.0',\n     'django-contrib-comments == 1.8.0',\n     'django-tinymce == 2.7.0',\n     'django-uuslug == 1.1.8',\n@@ -86,7 +86,6 @@\n     include_package_data=True,\n     classifiers=[\n         'Framework :: Django',\n-        'Framework :: Django :: 1.10',\n         'Framework :: Django :: 1.11',\n         'Intended Audience :: Developers',\n         'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n", "issue": "Remove django 1.10 support\n- Remove django 1.10 testenv from tox.ini\r\n- Update django version in setup.py. Minimum django version is `1.11`.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n    pkg_version = f.read().strip()\n\n\ndef get_long_description():\n    with open('README.rst', 'r') as f:\n        return f.read()\n\n\ninstall_requires = [\n    'PyMySQL == 0.7.11',\n    'beautifulsoup4 >= 4.1.1',\n    'celery == 4.1.0',\n    'django >= 1.10,<2.0',\n    'django-contrib-comments == 1.8.0',\n    'django-tinymce == 2.7.0',\n    'django-uuslug == 1.1.8',\n    'html2text',\n    'kobo == 0.7.0',\n    'odfpy >= 0.9.6',\n    'python-bugzilla',\n    'six',\n    'xmltodict',\n]\n\nif sys.version_info.major < 3:\n    install_requires += [\n        'enum34',\n    ]\n\nextras_require = {\n    # Required for tcms.core.contrib.auth.backends.KerberosBackend\n    'krbauth': [\n        'kerberos == 1.2.5'\n    ],\n\n    # Packages for building documentation\n    'docs': [\n        'Sphinx >= 1.1.2',\n        'sphinx_rtd_theme',\n    ],\n\n    # Necessary packages for running tests\n    'tests': [\n        'coverage',\n        'factory_boy',\n        'flake8',\n        'mock',\n        'pytest',\n        'pytest-cov',\n        'pytest-django',\n    ],\n\n    # Contain tools that assists the development\n    'devtools': [\n        'django-debug-toolbar == 1.7',\n        'tox',\n        'django-extensions',\n        'pygraphviz',\n        'future-breakpoint',\n    ]\n}\n\n\nsetup(\n    name='Nitrate',\n    version=pkg_version,\n    description='Test Case Management System',\n    long_description=get_long_description(),\n    author='Nitrate Team',\n    maintainer='Chenxiong Qi',\n    maintainer_email='qcxhome@gmail.com',\n    url='https://github.com/Nitrate/Nitrate/',\n    license='GPLv2+',\n    keywords='test case',\n    install_requires=install_requires,\n    extras_require=extras_require,\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=[\n        'Framework :: Django',\n        'Framework :: Django :: 1.10',\n        'Framework :: Django :: 1.11',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Topic :: Software Development :: Quality Assurance',\n        'Topic :: Software Development :: Testing',\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n    pkg_version = f.read().strip()\n\n\ndef get_long_description():\n    with open('README.rst', 'r') as f:\n        return f.read()\n\n\ninstall_requires = [\n    'PyMySQL == 0.7.11',\n    'beautifulsoup4 >= 4.1.1',\n    'celery == 4.1.0',\n    'django >= 1.11,<2.0',\n    'django-contrib-comments == 1.8.0',\n    'django-tinymce == 2.7.0',\n    'django-uuslug == 1.1.8',\n    'html2text',\n    'kobo == 0.7.0',\n    'odfpy >= 0.9.6',\n    'python-bugzilla',\n    'six',\n    'xmltodict',\n]\n\nif sys.version_info.major < 3:\n    install_requires += [\n        'enum34',\n    ]\n\nextras_require = {\n    # Required for tcms.core.contrib.auth.backends.KerberosBackend\n    'krbauth': [\n        'kerberos == 1.2.5'\n    ],\n\n    # Packages for building documentation\n    'docs': [\n        'Sphinx >= 1.1.2',\n        'sphinx_rtd_theme',\n    ],\n\n    # Necessary packages for running tests\n    'tests': [\n        'coverage',\n        'factory_boy',\n        'flake8',\n        'mock',\n        'pytest',\n        'pytest-cov',\n        'pytest-django',\n    ],\n\n    # Contain tools that assists the development\n    'devtools': [\n        'django-debug-toolbar == 1.7',\n        'tox',\n        'django-extensions',\n        'pygraphviz',\n        'future-breakpoint',\n    ]\n}\n\n\nsetup(\n    name='Nitrate',\n    version=pkg_version,\n    description='Test Case Management System',\n    long_description=get_long_description(),\n    author='Nitrate Team',\n    maintainer='Chenxiong Qi',\n    maintainer_email='qcxhome@gmail.com',\n    url='https://github.com/Nitrate/Nitrate/',\n    license='GPLv2+',\n    keywords='test case',\n    install_requires=install_requires,\n    extras_require=extras_require,\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=[\n        'Framework :: Django',\n        'Framework :: Django :: 1.11',\n        'Intended Audience :: Developers',\n        'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.6',\n        'Topic :: Software Development :: Quality Assurance',\n        'Topic :: Software Development :: Testing',\n    ],\n)\n", "path": "setup.py"}]}