prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Fix compatibility with Falcon 2.0
  Tests are currently failing when Falcon 2.0.0 is installed.
  
  --- 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 import sys
  3 import re
  4 from setuptools import setup, find_packages
  5 
  6 INSTALL_REQUIRES = ["marshmallow>=2.15.2"]
  7 if sys.version_info[0] < 3:
  8     INSTALL_REQUIRES.append("simplejson>=2.1.0")
  9 
  10 FRAMEWORKS = [
  11     "Flask>=0.12.2",
  12     "Django>=1.11.16",
  13     "bottle>=0.12.13",
  14     "tornado>=4.5.2",
  15     "pyramid>=1.9.1",
  16     "webapp2>=3.0.0b1",
  17     "falcon>=1.4.0",
  18     'aiohttp>=3.0.0; python_version >= "3.5"',
  19 ]
  20 EXTRAS_REQUIRE = {
  21     "frameworks": FRAMEWORKS,
  22     "tests": [
  23         "pytest",
  24         "mock",
  25         "webtest==2.0.32",
  26         'webtest-aiohttp==2.0.0; python_version >= "3.5"',
  27         'pytest-aiohttp>=0.3.0; python_version >= "3.5"',
  28     ]
  29     + FRAMEWORKS,
  30     "lint": [
  31         'mypy==0.650; python_version >= "3.5"',
  32         "flake8==3.6.0",
  33         'flake8-bugbear==18.8.0; python_version >= "3.5"',
  34         "pre-commit==1.13.0",
  35     ],
  36 }
  37 EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + EXTRAS_REQUIRE["lint"] + ["tox"]
  38 
  39 
  40 def find_version(fname):
  41     """Attempts to find the version number in the file names fname.
  42     Raises RuntimeError if not found.
  43     """
  44     version = ""
  45     with open(fname, "r") as fp:
  46         reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
  47         for line in fp:
  48             m = reg.match(line)
  49             if m:
  50                 version = m.group(1)
  51                 break
  52     if not version:
  53         raise RuntimeError("Cannot find version information")
  54     return version
  55 
  56 
  57 def read(fname):
  58     with open(fname) as fp:
  59         content = fp.read()
  60     return content
  61 
  62 
  63 setup(
  64     name="webargs",
  65     version=find_version("src/webargs/__init__.py"),
  66     description=(
  67         "Declarative parsing and validation of HTTP request objects, "
  68         "with built-in support for popular web frameworks, including "
  69         "Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp."
  70     ),
  71     long_description=read("README.rst"),
  72     author="Steven Loria",
  73     author_email="sloria1@gmail.com",
  74     url="https://github.com/marshmallow-code/webargs",
  75     packages=find_packages("src"),
  76     package_dir={"": "src"},
  77     install_requires=INSTALL_REQUIRES,
  78     extras_require=EXTRAS_REQUIRE,
  79     license="MIT",
  80     zip_safe=False,
  81     keywords=(
  82         "webargs",
  83         "http",
  84         "flask",
  85         "django",
  86         "bottle",
  87         "tornado",
  88         "aiohttp",
  89         "webapp2",
  90         "request",
  91         "arguments",
  92         "validation",
  93         "parameters",
  94         "rest",
  95         "api",
  96         "marshmallow",
  97     ),
  98     classifiers=[
  99         "Development Status :: 5 - Production/Stable",
  100         "Intended Audience :: Developers",
  101         "License :: OSI Approved :: MIT License",
  102         "Natural Language :: English",
  103         "Programming Language :: Python :: 2",
  104         "Programming Language :: Python :: 2.7",
  105         "Programming Language :: Python :: 3",
  106         "Programming Language :: Python :: 3.5",
  107         "Programming Language :: Python :: 3.6",
  108         "Programming Language :: Python :: 3.7",
  109         "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
  110         "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  111     ],
  112     test_suite="tests",
  113     project_urls={
  114         "Changelog": "https://webargs.readthedocs.io/en/latest/changelog.html",
  115         "Issues": "https://github.com/marshmallow-code/webargs/issues",
  116         "Funding": "https://opencollective.com/marshmallow",
  117         "Tidelift": "https://tidelift.com/subscription/pkg/pypi-webargs?utm_source=pypi-marshmallow&utm_medium=pypi",  # noqa
  118     },
  119 )
  120
  ```
  --- 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
  @@ -14,7 +14,7 @@
       "tornado>=4.5.2",
       "pyramid>=1.9.1",
       "webapp2>=3.0.0b1",
  -    "falcon>=1.4.0",
  +    "falcon>=1.4.0,<2.0",
       'aiohttp>=3.0.0; python_version >= "3.5"',
   ]
   EXTRAS_REQUIRE = {
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -14,7 +14,7 @@\n     \"tornado>=4.5.2\",\n     \"pyramid>=1.9.1\",\n     \"webapp2>=3.0.0b1\",\n-    \"falcon>=1.4.0\",\n+    \"falcon>=1.4.0,<2.0\",\n     'aiohttp>=3.0.0; python_version >= \"3.5\"',\n ]\n EXTRAS_REQUIRE = {\n", "issue": "Fix compatibility with Falcon 2.0\nTests are currently failing when Falcon 2.0.0 is installed.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nimport sys\nimport re\nfrom setuptools import setup, find_packages\n\nINSTALL_REQUIRES = [\"marshmallow>=2.15.2\"]\nif sys.version_info[0] < 3:\n    INSTALL_REQUIRES.append(\"simplejson>=2.1.0\")\n\nFRAMEWORKS = [\n    \"Flask>=0.12.2\",\n    \"Django>=1.11.16\",\n    \"bottle>=0.12.13\",\n    \"tornado>=4.5.2\",\n    \"pyramid>=1.9.1\",\n    \"webapp2>=3.0.0b1\",\n    \"falcon>=1.4.0\",\n    'aiohttp>=3.0.0; python_version >= \"3.5\"',\n]\nEXTRAS_REQUIRE = {\n    \"frameworks\": FRAMEWORKS,\n    \"tests\": [\n        \"pytest\",\n        \"mock\",\n        \"webtest==2.0.32\",\n        'webtest-aiohttp==2.0.0; python_version >= \"3.5\"',\n        'pytest-aiohttp>=0.3.0; python_version >= \"3.5\"',\n    ]\n    + FRAMEWORKS,\n    \"lint\": [\n        'mypy==0.650; python_version >= \"3.5\"',\n        \"flake8==3.6.0\",\n        'flake8-bugbear==18.8.0; python_version >= \"3.5\"',\n        \"pre-commit==1.13.0\",\n    ],\n}\nEXTRAS_REQUIRE[\"dev\"] = EXTRAS_REQUIRE[\"tests\"] + EXTRAS_REQUIRE[\"lint\"] + [\"tox\"]\n\n\ndef find_version(fname):\n    \"\"\"Attempts to find the version number in the file names fname.\n    Raises RuntimeError if not found.\n    \"\"\"\n    version = \"\"\n    with open(fname, \"r\") as fp:\n        reg = re.compile(r'__version__ = [\\'\"]([^\\'\"]*)[\\'\"]')\n        for line in fp:\n            m = reg.match(line)\n            if m:\n                version = m.group(1)\n                break\n    if not version:\n        raise RuntimeError(\"Cannot find version information\")\n    return version\n\n\ndef read(fname):\n    with open(fname) as fp:\n        content = fp.read()\n    return content\n\n\nsetup(\n    name=\"webargs\",\n    version=find_version(\"src/webargs/__init__.py\"),\n    description=(\n        \"Declarative parsing and validation of HTTP request objects, \"\n        \"with built-in support for popular web frameworks, including \"\n        \"Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.\"\n    ),\n    long_description=read(\"README.rst\"),\n    author=\"Steven Loria\",\n    author_email=\"sloria1@gmail.com\",\n    url=\"https://github.com/marshmallow-code/webargs\",\n    packages=find_packages(\"src\"),\n    package_dir={\"\": \"src\"},\n    install_requires=INSTALL_REQUIRES,\n    extras_require=EXTRAS_REQUIRE,\n    license=\"MIT\",\n    zip_safe=False,\n    keywords=(\n        \"webargs\",\n        \"http\",\n        \"flask\",\n        \"django\",\n        \"bottle\",\n        \"tornado\",\n        \"aiohttp\",\n        \"webapp2\",\n        \"request\",\n        \"arguments\",\n        \"validation\",\n        \"parameters\",\n        \"rest\",\n        \"api\",\n        \"marshmallow\",\n    ),\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Natural Language :: English\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Topic :: Internet :: WWW/HTTP :: Dynamic Content\",\n        \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n    ],\n    test_suite=\"tests\",\n    project_urls={\n        \"Changelog\": \"https://webargs.readthedocs.io/en/latest/changelog.html\",\n        \"Issues\": \"https://github.com/marshmallow-code/webargs/issues\",\n        \"Funding\": \"https://opencollective.com/marshmallow\",\n        \"Tidelift\": \"https://tidelift.com/subscription/pkg/pypi-webargs?utm_source=pypi-marshmallow&utm_medium=pypi\",  # noqa\n    },\n)\n", "path": "setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nimport sys\nimport re\nfrom setuptools import setup, find_packages\n\nINSTALL_REQUIRES = [\"marshmallow>=2.15.2\"]\nif sys.version_info[0] < 3:\n    INSTALL_REQUIRES.append(\"simplejson>=2.1.0\")\n\nFRAMEWORKS = [\n    \"Flask>=0.12.2\",\n    \"Django>=1.11.16\",\n    \"bottle>=0.12.13\",\n    \"tornado>=4.5.2\",\n    \"pyramid>=1.9.1\",\n    \"webapp2>=3.0.0b1\",\n    \"falcon>=1.4.0,<2.0\",\n    'aiohttp>=3.0.0; python_version >= \"3.5\"',\n]\nEXTRAS_REQUIRE = {\n    \"frameworks\": FRAMEWORKS,\n    \"tests\": [\n        \"pytest\",\n        \"mock\",\n        \"webtest==2.0.32\",\n        'webtest-aiohttp==2.0.0; python_version >= \"3.5\"',\n        'pytest-aiohttp>=0.3.0; python_version >= \"3.5\"',\n    ]\n    + FRAMEWORKS,\n    \"lint\": [\n        'mypy==0.650; python_version >= \"3.5\"',\n        \"flake8==3.6.0\",\n        'flake8-bugbear==18.8.0; python_version >= \"3.5\"',\n        \"pre-commit==1.13.0\",\n    ],\n}\nEXTRAS_REQUIRE[\"dev\"] = EXTRAS_REQUIRE[\"tests\"] + EXTRAS_REQUIRE[\"lint\"] + [\"tox\"]\n\n\ndef find_version(fname):\n    \"\"\"Attempts to find the version number in the file names fname.\n    Raises RuntimeError if not found.\n    \"\"\"\n    version = \"\"\n    with open(fname, \"r\") as fp:\n        reg = re.compile(r'__version__ = [\\'\"]([^\\'\"]*)[\\'\"]')\n        for line in fp:\n            m = reg.match(line)\n            if m:\n                version = m.group(1)\n                break\n    if not version:\n        raise RuntimeError(\"Cannot find version information\")\n    return version\n\n\ndef read(fname):\n    with open(fname) as fp:\n        content = fp.read()\n    return content\n\n\nsetup(\n    name=\"webargs\",\n    version=find_version(\"src/webargs/__init__.py\"),\n    description=(\n        \"Declarative parsing and validation of HTTP request objects, \"\n        \"with built-in support for popular web frameworks, including \"\n        \"Flask, Django, Bottle, Tornado, Pyramid, webapp2, Falcon, and aiohttp.\"\n    ),\n    long_description=read(\"README.rst\"),\n    author=\"Steven Loria\",\n    author_email=\"sloria1@gmail.com\",\n    url=\"https://github.com/marshmallow-code/webargs\",\n    packages=find_packages(\"src\"),\n    package_dir={\"\": \"src\"},\n    install_requires=INSTALL_REQUIRES,\n    extras_require=EXTRAS_REQUIRE,\n    license=\"MIT\",\n    zip_safe=False,\n    keywords=(\n        \"webargs\",\n        \"http\",\n        \"flask\",\n        \"django\",\n        \"bottle\",\n        \"tornado\",\n        \"aiohttp\",\n        \"webapp2\",\n        \"request\",\n        \"arguments\",\n        \"validation\",\n        \"parameters\",\n        \"rest\",\n        \"api\",\n        \"marshmallow\",\n    ),\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Natural Language :: English\",\n        \"Programming Language :: Python :: 2\",\n        \"Programming Language :: Python :: 2.7\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Topic :: Internet :: WWW/HTTP :: Dynamic Content\",\n        \"Topic :: Internet :: WWW/HTTP :: WSGI :: Application\",\n    ],\n    test_suite=\"tests\",\n    project_urls={\n        \"Changelog\": \"https://webargs.readthedocs.io/en/latest/changelog.html\",\n        \"Issues\": \"https://github.com/marshmallow-code/webargs/issues\",\n        \"Funding\": \"https://opencollective.com/marshmallow\",\n        \"Tidelift\": \"https://tidelift.com/subscription/pkg/pypi-webargs?utm_source=pypi-marshmallow&utm_medium=pypi\",  # noqa\n    },\n)\n", "path": "setup.py"}]}