We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Bump Sphinx to >=1.7.2
Would anyone be opposed to bumping Sphinx to >=1.7.2, != 1.7.3 in `setup.py`? I really want our PDFs to have `emphasize-lines` support, at long last, and bring in support for Unicode characters in PDFs via xelatex.

Refs:
* #667
* #2572
* https://github.com/rtfd/readthedocs.org/issues/4015


--- 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 ##############################################################################
2 #
3 # Copyright (c) 2008-2013 Agendaless Consulting and Contributors.
4 # All Rights Reserved.
5 #
6 # This software is subject to the provisions of the BSD-like license at
7 # http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany
8 # this distribution.  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL
9 # EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,
10 # THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND
11 # FITNESS FOR A PARTICULAR PURPOSE
12 #
13 ##############################################################################
14 from setuptools import setup, find_packages
15 
16 def readfile(name):
17     with open(name) as f:
18         return f.read()
19 
20 README = readfile('README.rst')
21 CHANGES = readfile('CHANGES.rst')
22 
23 install_requires = [
24     'setuptools',
25     'WebOb >= 1.7.0', # Response.has_body
26     'zope.interface >= 3.8.0',  # has zope.interface.registry
27     'zope.deprecation >= 3.5.0', # py3 compat
28     'venusian >= 1.0', # ``ignore``
29     'translationstring >= 0.4', # py3 compat
30     'PasteDeploy >= 1.5.0', # py3 compat
31     'plaster',
32     'plaster_pastedeploy',
33     'hupper',
34     ]
35 
36 tests_require = [
37     'WebTest >= 1.3.1', # py3 compat
38     'zope.component >= 4.0', # py3 compat
39     ]
40 
41 
42 docs_extras = [
43     'Sphinx >= 1.3.5, != 1.7.3',
44     'docutils',
45     'repoze.sphinx.autointerface',
46     'pylons_sphinx_latesturl',
47     'pylons-sphinx-themes',
48     'sphinxcontrib-autoprogram',
49     ]
50 
51 testing_extras = tests_require + [
52     'nose',
53     'coverage',
54     'virtualenv',  # for scaffolding tests
55     ]
56 
57 setup(name='pyramid',
58       version='1.10.dev0',
59       description='The Pyramid Web Framework, a Pylons project',
60       long_description=README + '\n\n' + CHANGES,
61       classifiers=[
62           "Development Status :: 6 - Mature",
63           "Intended Audience :: Developers",
64           "Programming Language :: Python",
65           "Programming Language :: Python :: 2.7",
66           "Programming Language :: Python :: 3",
67           "Programming Language :: Python :: 3.4",
68           "Programming Language :: Python :: 3.5",
69           "Programming Language :: Python :: 3.6",
70           "Programming Language :: Python :: Implementation :: CPython",
71           "Programming Language :: Python :: Implementation :: PyPy",
72           "Framework :: Pyramid",
73           "Topic :: Internet :: WWW/HTTP",
74           "Topic :: Internet :: WWW/HTTP :: WSGI",
75           "License :: Repoze Public License",
76       ],
77       keywords='web wsgi pylons pyramid',
78       author="Chris McDonough, Agendaless Consulting",
79       author_email="pylons-discuss@googlegroups.com",
80       url="https://trypyramid.com",
81       license="BSD-derived (http://www.repoze.org/LICENSE.txt)",
82       packages=find_packages(),
83       include_package_data=True,
84       zip_safe=False,
85       python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
86       install_requires=install_requires,
87       extras_require={
88           ':python_version<"3.2"': ['repoze.lru >= 0.4'],
89           'testing': testing_extras,
90           'docs': docs_extras,
91           },
92       tests_require=tests_require,
93       test_suite="pyramid.tests",
94       entry_points="""\
95         [pyramid.scaffold]
96         starter=pyramid.scaffolds:StarterProjectTemplate
97         zodb=pyramid.scaffolds:ZODBProjectTemplate
98         alchemy=pyramid.scaffolds:AlchemyProjectTemplate
99         [pyramid.pshell_runner]
100         python=pyramid.scripts.pshell:python_shell_runner
101         [console_scripts]
102         pcreate = pyramid.scripts.pcreate:main
103         pserve = pyramid.scripts.pserve:main
104         pshell = pyramid.scripts.pshell:main
105         proutes = pyramid.scripts.proutes:main
106         pviews = pyramid.scripts.pviews:main
107         ptweens = pyramid.scripts.ptweens:main
108         prequest = pyramid.scripts.prequest:main
109         pdistreport = pyramid.scripts.pdistreport:main
110         [paste.server_runner]
111         wsgiref = pyramid.scripts.pserve:wsgiref_server_runner
112         cherrypy = pyramid.scripts.pserve:cherrypy_server_runner
113       """
114       )
115
```
--- 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
@@ -40,7 +40,7 @@
 
 
 docs_extras = [
-    'Sphinx >= 1.3.5, != 1.7.3',
+    'Sphinx >= 1.7.4',
     'docutils',
     'repoze.sphinx.autointerface',
     'pylons_sphinx_latesturl',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -40,7 +40,7 @@\n \n \n docs_extras = [\n-    'Sphinx >= 1.3.5, != 1.7.3',\n+    'Sphinx >= 1.7.4',\n     'docutils',\n     'repoze.sphinx.autointerface',\n     'pylons_sphinx_latesturl',\n", "issue": "Bump Sphinx to >=1.7.2\nWould anyone be opposed to bumping Sphinx to >=1.7.2, != 1.7.3 in `setup.py`? I really want our PDFs to have `emphasize-lines` support, at long last, and bring in support for Unicode characters in PDFs via xelatex.\r\n\r\nRefs:\r\n* #667\r\n* #2572\r\n* https://github.com/rtfd/readthedocs.org/issues/4015\r\n\n", "before_files": [{"content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany\n# this distribution.  THIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY AND ALL\n# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND\n# FITNESS FOR A PARTICULAR PURPOSE\n#\n##############################################################################\nfrom setuptools import setup, find_packages\n\ndef readfile(name):\n    with open(name) as f:\n        return f.read()\n\nREADME = readfile('README.rst')\nCHANGES = readfile('CHANGES.rst')\n\ninstall_requires = [\n    'setuptools',\n    'WebOb >= 1.7.0', # Response.has_body\n    'zope.interface >= 3.8.0',  # has zope.interface.registry\n    'zope.deprecation >= 3.5.0', # py3 compat\n    'venusian >= 1.0', # ``ignore``\n    'translationstring >= 0.4', # py3 compat\n    'PasteDeploy >= 1.5.0', # py3 compat\n    'plaster',\n    'plaster_pastedeploy',\n    'hupper',\n    ]\n\ntests_require = [\n    'WebTest >= 1.3.1', # py3 compat\n    'zope.component >= 4.0', # py3 compat\n    ]\n\n\ndocs_extras = [\n    'Sphinx >= 1.3.5, != 1.7.3',\n    'docutils',\n    'repoze.sphinx.autointerface',\n    'pylons_sphinx_latesturl',\n    'pylons-sphinx-themes',\n    'sphinxcontrib-autoprogram',\n    ]\n\ntesting_extras = tests_require + [\n    'nose',\n    'coverage',\n    'virtualenv',  # for scaffolding tests\n    ]\n\nsetup(name='pyramid',\n      version='1.10.dev0',\n      description='The Pyramid Web Framework, a Pylons project',\n      long_description=README + '\\n\\n' + CHANGES,\n      classifiers=[\n          \"Development Status :: 6 - Mature\",\n          \"Intended Audience :: Developers\",\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2.7\",\n          \"Programming Language :: Python :: 3\",\n          \"Programming Language :: Python :: 3.4\",\n          \"Programming Language :: Python :: 3.5\",\n          \"Programming Language :: Python :: 3.6\",\n          \"Programming Language :: Python :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Framework :: Pyramid\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI\",\n          \"License :: Repoze Public License\",\n      ],\n      keywords='web wsgi pylons pyramid',\n      author=\"Chris McDonough, Agendaless Consulting\",\n      author_email=\"pylons-discuss@googlegroups.com\",\n      url=\"https://trypyramid.com\",\n      license=\"BSD-derived (http://www.repoze.org/LICENSE.txt)\",\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',\n      install_requires=install_requires,\n      extras_require={\n          ':python_version<\"3.2\"': ['repoze.lru >= 0.4'],\n          'testing': testing_extras,\n          'docs': docs_extras,\n          },\n      tests_require=tests_require,\n      test_suite=\"pyramid.tests\",\n      entry_points=\"\"\"\\\n        [pyramid.scaffold]\n        starter=pyramid.scaffolds:StarterProjectTemplate\n        zodb=pyramid.scaffolds:ZODBProjectTemplate\n        alchemy=pyramid.scaffolds:AlchemyProjectTemplate\n        [pyramid.pshell_runner]\n        python=pyramid.scripts.pshell:python_shell_runner\n        [console_scripts]\n        pcreate = pyramid.scripts.pcreate:main\n        pserve = pyramid.scripts.pserve:main\n        pshell = pyramid.scripts.pshell:main\n        proutes = pyramid.scripts.proutes:main\n        pviews = pyramid.scripts.pviews:main\n        ptweens = pyramid.scripts.ptweens:main\n        prequest = pyramid.scripts.prequest:main\n        pdistreport = pyramid.scripts.pdistreport:main\n        [paste.server_runner]\n        wsgiref = pyramid.scripts.pserve:wsgiref_server_runner\n        cherrypy = pyramid.scripts.pserve:cherrypy_server_runner\n      \"\"\"\n      )\n", "path": "setup.py"}], "after_files": [{"content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt.  A copy of the license should accompany\n# this distribution.  THIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY AND ALL\n# EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND\n# FITNESS FOR A PARTICULAR PURPOSE\n#\n##############################################################################\nfrom setuptools import setup, find_packages\n\ndef readfile(name):\n    with open(name) as f:\n        return f.read()\n\nREADME = readfile('README.rst')\nCHANGES = readfile('CHANGES.rst')\n\ninstall_requires = [\n    'setuptools',\n    'WebOb >= 1.7.0', # Response.has_body\n    'zope.interface >= 3.8.0',  # has zope.interface.registry\n    'zope.deprecation >= 3.5.0', # py3 compat\n    'venusian >= 1.0', # ``ignore``\n    'translationstring >= 0.4', # py3 compat\n    'PasteDeploy >= 1.5.0', # py3 compat\n    'plaster',\n    'plaster_pastedeploy',\n    'hupper',\n    ]\n\ntests_require = [\n    'WebTest >= 1.3.1', # py3 compat\n    'zope.component >= 4.0', # py3 compat\n    ]\n\n\ndocs_extras = [\n    'Sphinx >= 1.7.4',\n    'docutils',\n    'repoze.sphinx.autointerface',\n    'pylons_sphinx_latesturl',\n    'pylons-sphinx-themes',\n    'sphinxcontrib-autoprogram',\n    ]\n\ntesting_extras = tests_require + [\n    'nose',\n    'coverage',\n    'virtualenv',  # for scaffolding tests\n    ]\n\nsetup(name='pyramid',\n      version='1.10.dev0',\n      description='The Pyramid Web Framework, a Pylons project',\n      long_description=README + '\\n\\n' + CHANGES,\n      classifiers=[\n          \"Development Status :: 6 - Mature\",\n          \"Intended Audience :: Developers\",\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2.7\",\n          \"Programming Language :: Python :: 3\",\n          \"Programming Language :: Python :: 3.4\",\n          \"Programming Language :: Python :: 3.5\",\n          \"Programming Language :: Python :: 3.6\",\n          \"Programming Language :: Python :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Framework :: Pyramid\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI\",\n          \"License :: Repoze Public License\",\n      ],\n      keywords='web wsgi pylons pyramid',\n      author=\"Chris McDonough, Agendaless Consulting\",\n      author_email=\"pylons-discuss@googlegroups.com\",\n      url=\"https://trypyramid.com\",\n      license=\"BSD-derived (http://www.repoze.org/LICENSE.txt)\",\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',\n      install_requires=install_requires,\n      extras_require={\n          ':python_version<\"3.2\"': ['repoze.lru >= 0.4'],\n          'testing': testing_extras,\n          'docs': docs_extras,\n          },\n      tests_require=tests_require,\n      test_suite=\"pyramid.tests\",\n      entry_points=\"\"\"\\\n        [pyramid.scaffold]\n        starter=pyramid.scaffolds:StarterProjectTemplate\n        zodb=pyramid.scaffolds:ZODBProjectTemplate\n        alchemy=pyramid.scaffolds:AlchemyProjectTemplate\n        [pyramid.pshell_runner]\n        python=pyramid.scripts.pshell:python_shell_runner\n        [console_scripts]\n        pcreate = pyramid.scripts.pcreate:main\n        pserve = pyramid.scripts.pserve:main\n        pshell = pyramid.scripts.pshell:main\n        proutes = pyramid.scripts.proutes:main\n        pviews = pyramid.scripts.pviews:main\n        ptweens = pyramid.scripts.ptweens:main\n        prequest = pyramid.scripts.prequest:main\n        pdistreport = pyramid.scripts.pdistreport:main\n        [paste.server_runner]\n        wsgiref = pyramid.scripts.pserve:wsgiref_server_runner\n        cherrypy = pyramid.scripts.pserve:cherrypy_server_runner\n      \"\"\"\n      )\n", "path": "setup.py"}]}