prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  kinto start fails: no module named functools32
  ```
  kinto start
  Starting subprocess with file monitor
  2015-11-29 10:12:24,821 INFO  [venusian][MainThread] kinto 1.9.0 starting. 
  Traceback (most recent call last):
    File "/var/www/kinto.leplat.re/venv/bin/kinto", line 9, in <module>
      load_entry_point('kinto==1.9.0', 'console_scripts', 'kinto')()
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__main__.py", line 55, in main
      pserve.main(pserve_argv)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 60, in main
      return command.run()
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 366, in run
      global_conf=vars)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 401, in loadapp
      return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
      return loadobj(APP, uri, name=name, **kw)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
      return context.create()
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
      return self.object_type.invoke(self)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
      return fix_call(context.object, context.global_conf, **context.local_conf)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
      val = callable(*args, **kw)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__init__.py", line 77, in main
      config.scan("kinto.views", **kwargs)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/config/__init__.py", line 974, in scan
      ignore=ignore)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/venusian/__init__.py", line 205, in scan
      __import__(modname)
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/buckets.py", line 12, in <module>
      from kinto.views.collections import Collection
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/collections.py", line 2, in <module>
      import jsonschema
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/__init__.py", line 12, in <module>
      from jsonschema.exceptions import (
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/exceptions.py", line 6, in <module>
      from jsonschema import _utils
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/_utils.py", line 6, in <module>
      from jsonschema.compat import str_types, MutableMapping, urlsplit
    File "/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/compat.py", line 39, in <module>
      from functools32 import lru_cache
  ImportError: No module named functools32
  ```
  
  
  --- 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 import codecs
  2 import os
  3 import sys
  4 from setuptools import setup, find_packages
  5 
  6 here = os.path.abspath(os.path.dirname(__file__))
  7 
  8 
  9 def read_file(filename):
  10     """Open a related file and return its content."""
  11     with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:
  12         content = f.read()
  13     return content
  14 
  15 README = read_file('README.rst')
  16 CHANGELOG = read_file('CHANGELOG.rst')
  17 CONTRIBUTORS = read_file('CONTRIBUTORS.rst')
  18 
  19 REQUIREMENTS = [
  20     'waitress',
  21     'cliquet>=2.15,<3',
  22     'jsonschema',
  23 ]
  24 
  25 if sys.version_info < (3,):
  26     REQUIREMENTS.extend([
  27         'functools32',  # not installed by jsonschema with old pip versions.
  28     ])
  29 
  30 POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
  31     'cliquet[postgresql]>=2.15,<3'
  32 ]
  33 
  34 MONITORING_REQUIREMENTS = REQUIREMENTS + [
  35     'cliquet[monitoring]>=2.15,<3'
  36 ]
  37 
  38 FXA_REQUIREMENTS = REQUIREMENTS + [
  39     'cliquet-fxa<2'
  40 ]
  41 
  42 ENTRY_POINTS = {
  43     'paste.app_factory': [
  44         'main = kinto:main',
  45     ],
  46     'console_scripts': [
  47         'kinto = kinto.__main__:main'
  48     ],
  49 }
  50 
  51 DEPENDENCY_LINKS = [
  52 ]
  53 
  54 setup(name='kinto',
  55       version='1.12.0.dev0',
  56       description='Kinto Web Service - Store, Sync, Share, and Self-Host.',
  57       long_description=README + "\n\n" + CHANGELOG + "\n\n" + CONTRIBUTORS,
  58       license='Apache License (2.0)',
  59       classifiers=[
  60           "Programming Language :: Python",
  61           "Programming Language :: Python :: 2",
  62           "Programming Language :: Python :: 2.7",
  63           "Programming Language :: Python :: 3",
  64           "Programming Language :: Python :: 3.4",
  65           "Programming Language :: Python :: 3.5",
  66           "Programming Language :: Python :: Implementation :: CPython",
  67           "Programming Language :: Python :: Implementation :: PyPy",
  68           "Topic :: Internet :: WWW/HTTP",
  69           "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  70           "License :: OSI Approved :: Apache Software License"
  71       ],
  72       keywords="web sync json storage",
  73       author='Mozilla Services',
  74       author_email='storage-team@mozilla.com',
  75       url='https://github.com/Kinto/kinto',
  76       packages=find_packages(),
  77       include_package_data=True,
  78       zip_safe=False,
  79       install_requires=REQUIREMENTS,
  80       extras_require={
  81           'postgresql': POSTGRESQL_REQUIREMENTS,
  82           'monitoring': MONITORING_REQUIREMENTS,
  83           'fxa': FXA_REQUIREMENTS,
  84       },
  85       test_suite="kinto.tests",
  86       entry_points=ENTRY_POINTS,
  87       dependency_links=DEPENDENCY_LINKS)
  88
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -22,11 +22,6 @@
       'jsonschema',
   ]
   
  -if sys.version_info < (3,):
  -    REQUIREMENTS.extend([
  -        'functools32',  # not installed by jsonschema with old pip versions.
  -    ])
  -
   POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [
       'cliquet[postgresql]>=2.15,<3'
   ]
  @@ -81,6 +76,7 @@
             'postgresql': POSTGRESQL_REQUIREMENTS,
             'monitoring': MONITORING_REQUIREMENTS,
             'fxa': FXA_REQUIREMENTS,
  +          ":python_version=='2.7'": ["functools32"],
         },
         test_suite="kinto.tests",
         entry_points=ENTRY_POINTS,
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -22,11 +22,6 @@\n     'jsonschema',\n ]\n \n-if sys.version_info < (3,):\n-    REQUIREMENTS.extend([\n-        'functools32',  # not installed by jsonschema with old pip versions.\n-    ])\n-\n POSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n     'cliquet[postgresql]>=2.15,<3'\n ]\n@@ -81,6 +76,7 @@\n           'postgresql': POSTGRESQL_REQUIREMENTS,\n           'monitoring': MONITORING_REQUIREMENTS,\n           'fxa': FXA_REQUIREMENTS,\n+          \":python_version=='2.7'\": [\"functools32\"],\n       },\n       test_suite=\"kinto.tests\",\n       entry_points=ENTRY_POINTS,\n", "issue": "kinto start fails: no module named functools32\n```\nkinto start\nStarting subprocess with file monitor\n2015-11-29 10:12:24,821 INFO  [venusian][MainThread] kinto 1.9.0 starting. \nTraceback (most recent call last):\n  File \"/var/www/kinto.leplat.re/venv/bin/kinto\", line 9, in <module>\n    load_entry_point('kinto==1.9.0', 'console_scripts', 'kinto')()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__main__.py\", line 55, in main\n    pserve.main(pserve_argv)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 60, in main\n    return command.run()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 366, in run\n    global_conf=vars)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py\", line 401, in loadapp\n    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 247, in loadapp\n    return loadobj(APP, uri, name=name, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 272, in loadobj\n    return context.create()\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 710, in create\n    return self.object_type.invoke(self)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py\", line 146, in invoke\n    return fix_call(context.object, context.global_conf, **context.local_conf)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/paste/deploy/util.py\", line 55, in fix_call\n    val = callable(*args, **kw)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/__init__.py\", line 77, in main\n    config.scan(\"kinto.views\", **kwargs)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/pyramid/config/__init__.py\", line 974, in scan\n    ignore=ignore)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/venusian/__init__.py\", line 205, in scan\n    __import__(modname)\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/buckets.py\", line 12, in <module>\n    from kinto.views.collections import Collection\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/kinto/views/collections.py\", line 2, in <module>\n    import jsonschema\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/__init__.py\", line 12, in <module>\n    from jsonschema.exceptions import (\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/exceptions.py\", line 6, in <module>\n    from jsonschema import _utils\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/_utils.py\", line 6, in <module>\n    from jsonschema.compat import str_types, MutableMapping, urlsplit\n  File \"/var/www/kinto.leplat.re/venv/local/lib/python2.7/site-packages/jsonschema/compat.py\", line 39, in <module>\n    from functools32 import lru_cache\nImportError: No module named functools32\n```\n\n", "before_files": [{"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n    \"\"\"Open a related file and return its content.\"\"\"\n    with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n        content = f.read()\n    return content\n\nREADME = read_file('README.rst')\nCHANGELOG = read_file('CHANGELOG.rst')\nCONTRIBUTORS = read_file('CONTRIBUTORS.rst')\n\nREQUIREMENTS = [\n    'waitress',\n    'cliquet>=2.15,<3',\n    'jsonschema',\n]\n\nif sys.version_info < (3,):\n    REQUIREMENTS.extend([\n        'functools32',  # not installed by jsonschema with old pip versions.\n    ])\n\nPOSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[postgresql]>=2.15,<3'\n]\n\nMONITORING_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[monitoring]>=2.15,<3'\n]\n\nFXA_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet-fxa<2'\n]\n\nENTRY_POINTS = {\n    'paste.app_factory': [\n        'main = kinto:main',\n    ],\n    'console_scripts': [\n        'kinto = kinto.__main__:main'\n    ],\n}\n\nDEPENDENCY_LINKS = [\n]\n\nsetup(name='kinto',\n      version='1.12.0.dev0',\n      description='Kinto Web Service - Store, Sync, Share, and Self-Host.',\n      long_description=README + \"\\n\\n\" + CHANGELOG + \"\\n\\n\" + CONTRIBUTORS,\n      license='Apache License (2.0)',\n      classifiers=[\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2\",\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 :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n          \"License :: OSI Approved :: Apache Software License\"\n      ],\n      keywords=\"web sync json storage\",\n      author='Mozilla Services',\n      author_email='storage-team@mozilla.com',\n      url='https://github.com/Kinto/kinto',\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      install_requires=REQUIREMENTS,\n      extras_require={\n          'postgresql': POSTGRESQL_REQUIREMENTS,\n          'monitoring': MONITORING_REQUIREMENTS,\n          'fxa': FXA_REQUIREMENTS,\n      },\n      test_suite=\"kinto.tests\",\n      entry_points=ENTRY_POINTS,\n      dependency_links=DEPENDENCY_LINKS)\n", "path": "setup.py"}], "after_files": [{"content": "import codecs\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read_file(filename):\n    \"\"\"Open a related file and return its content.\"\"\"\n    with codecs.open(os.path.join(here, filename), encoding='utf-8') as f:\n        content = f.read()\n    return content\n\nREADME = read_file('README.rst')\nCHANGELOG = read_file('CHANGELOG.rst')\nCONTRIBUTORS = read_file('CONTRIBUTORS.rst')\n\nREQUIREMENTS = [\n    'waitress',\n    'cliquet>=2.15,<3',\n    'jsonschema',\n]\n\nPOSTGRESQL_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[postgresql]>=2.15,<3'\n]\n\nMONITORING_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet[monitoring]>=2.15,<3'\n]\n\nFXA_REQUIREMENTS = REQUIREMENTS + [\n    'cliquet-fxa<2'\n]\n\nENTRY_POINTS = {\n    'paste.app_factory': [\n        'main = kinto:main',\n    ],\n    'console_scripts': [\n        'kinto = kinto.__main__:main'\n    ],\n}\n\nDEPENDENCY_LINKS = [\n]\n\nsetup(name='kinto',\n      version='1.12.0.dev0',\n      description='Kinto Web Service - Store, Sync, Share, and Self-Host.',\n      long_description=README + \"\\n\\n\" + CHANGELOG + \"\\n\\n\" + CONTRIBUTORS,\n      license='Apache License (2.0)',\n      classifiers=[\n          \"Programming Language :: Python\",\n          \"Programming Language :: Python :: 2\",\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 :: Implementation :: CPython\",\n          \"Programming Language :: Python :: Implementation :: PyPy\",\n          \"Topic :: Internet :: WWW/HTTP\",\n          \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n          \"License :: OSI Approved :: Apache Software License\"\n      ],\n      keywords=\"web sync json storage\",\n      author='Mozilla Services',\n      author_email='storage-team@mozilla.com',\n      url='https://github.com/Kinto/kinto',\n      packages=find_packages(),\n      include_package_data=True,\n      zip_safe=False,\n      install_requires=REQUIREMENTS,\n      extras_require={\n          'postgresql': POSTGRESQL_REQUIREMENTS,\n          'monitoring': MONITORING_REQUIREMENTS,\n          'fxa': FXA_REQUIREMENTS,\n          \":python_version=='2.7'\": [\"functools32\"],\n      },\n      test_suite=\"kinto.tests\",\n      entry_points=ENTRY_POINTS,\n      dependency_links=DEPENDENCY_LINKS)\n", "path": "setup.py"}]}