prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [requires.io] dependency update on master branch
  
  
  --- 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 os
  2 import runpy
  3 from codecs import open
  4 
  5 from setuptools import setup, find_packages
  6 
  7 # Based on https://github.com/pypa/sampleproject/blob/master/setup.py
  8 # and https://python-packaging-user-guide.readthedocs.org/
  9 
  10 here = os.path.abspath(os.path.dirname(__file__))
  11 
  12 with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
  13     long_description = f.read()
  14 
  15 VERSION = runpy.run_path(os.path.join(here, "mitmproxy", "version.py"))["VERSION"]
  16 
  17 setup(
  18     name="mitmproxy",
  19     version=VERSION,
  20     description="An interactive, SSL-capable, man-in-the-middle HTTP proxy for penetration testers and software developers.",
  21     long_description=long_description,
  22     url="http://mitmproxy.org",
  23     author="Aldo Cortesi",
  24     author_email="aldo@corte.si",
  25     license="MIT",
  26     classifiers=[
  27         "License :: OSI Approved :: MIT License",
  28         "Development Status :: 5 - Production/Stable",
  29         "Environment :: Console",
  30         "Environment :: Console :: Curses",
  31         "Operating System :: MacOS :: MacOS X",
  32         "Operating System :: POSIX",
  33         "Operating System :: Microsoft :: Windows",
  34         "Programming Language :: Python",
  35         "Programming Language :: Python :: 3",
  36         "Programming Language :: Python :: 3 :: Only",
  37         "Programming Language :: Python :: 3.5",
  38         "Programming Language :: Python :: 3.6",
  39         "Programming Language :: Python :: Implementation :: CPython",
  40         "Topic :: Security",
  41         "Topic :: Internet",
  42         "Topic :: Internet :: WWW/HTTP",
  43         "Topic :: Internet :: Proxy Servers",
  44         "Topic :: Software Development :: Testing"
  45     ],
  46     packages=find_packages(include=[
  47         "mitmproxy", "mitmproxy.*",
  48         "pathod", "pathod.*",
  49     ]),
  50     include_package_data=True,
  51     entry_points={
  52         'console_scripts': [
  53             "mitmproxy = mitmproxy.tools.main:mitmproxy",
  54             "mitmdump = mitmproxy.tools.main:mitmdump",
  55             "mitmweb = mitmproxy.tools.main:mitmweb",
  56             "pathod = pathod.pathod_cmdline:go_pathod",
  57             "pathoc = pathod.pathoc_cmdline:go_pathoc"
  58         ]
  59     },
  60     # https://packaging.python.org/en/latest/requirements/#install-requires
  61     # It is not considered best practice to use install_requires to pin dependencies to specific versions.
  62     install_requires=[
  63         "blinker>=1.4, <1.5",
  64         "brotlipy>=0.5.1, <0.8",
  65         "certifi>=2015.11.20.1",  # no semver here - this should always be on the last release!
  66         "click>=6.2, <7",
  67         "cryptography>=2.0,<2.2",
  68         "h2>=3.0, <4",
  69         "hyperframe>=5.0, <6",
  70         "kaitaistruct>=0.7, <0.8",
  71         "ldap3>=2.2.0, <2.4",
  72         "passlib>=1.6.5, <1.8",
  73         "pyasn1>=0.3.1, <0.4",
  74         "pyOpenSSL>=17.2,<17.4",
  75         "pyparsing>=2.1.3, <2.3",
  76         "pyperclip>=1.5.22, <1.6",
  77         "requests>=2.9.1, <3",
  78         "ruamel.yaml>=0.13.2, <0.16",
  79         "sortedcontainers>=1.5.4, <1.6",
  80         "tornado>=4.3, <4.6",
  81         "urwid>=1.3.1, <1.4",
  82     ],
  83     extras_require={
  84         ':sys_platform == "win32"': [
  85             "pydivert>=2.0.3,<2.2",
  86         ],
  87         'dev': [
  88             "flake8>=3.2.1, <3.5",
  89             "Flask>=0.10.1, <0.13",
  90             "mypy>=0.530,<0.541",
  91             "pytest-cov>=2.2.1, <3",
  92             "pytest-faulthandler>=1.3.0, <2",
  93             "pytest-timeout>=1.0.0, <2",
  94             "pytest-xdist>=1.14, <2",
  95             "pytest>=3.1, <4",
  96             "rstcheck>=2.2, <4.0",
  97             "sphinx_rtd_theme>=0.1.9, <0.3",
  98             "sphinx-autobuild>=0.5.2, <0.8",
  99             "sphinx>=1.3.5, <1.7",
  100             "sphinxcontrib-documentedlist>=0.5.0, <0.7",
  101             "tox>=2.3, <3",
  102         ],
  103         'examples': [
  104             "beautifulsoup4>=4.4.1, <4.7",
  105             "Pillow>=4.3,<4.4",
  106         ]
  107     }
  108 )
  109
  ```
  --- 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
  @@ -85,7 +85,7 @@
               "pydivert>=2.0.3,<2.2",
           ],
           'dev': [
  -            "flake8>=3.2.1, <3.5",
  +            "flake8>=3.5, <3.6",
               "Flask>=0.10.1, <0.13",
               "mypy>=0.530,<0.541",
               "pytest-cov>=2.2.1, <3",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -85,7 +85,7 @@\n             \"pydivert>=2.0.3,<2.2\",\n         ],\n         'dev': [\n-            \"flake8>=3.2.1, <3.5\",\n+            \"flake8>=3.5, <3.6\",\n             \"Flask>=0.10.1, <0.13\",\n             \"mypy>=0.530,<0.541\",\n             \"pytest-cov>=2.2.1, <3\",\n", "issue": "[requires.io] dependency update on master branch\n\n", "before_files": [{"content": "import os\nimport runpy\nfrom codecs import open\n\nfrom setuptools import setup, find_packages\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:\n    long_description = f.read()\n\nVERSION = runpy.run_path(os.path.join(here, \"mitmproxy\", \"version.py\"))[\"VERSION\"]\n\nsetup(\n    name=\"mitmproxy\",\n    version=VERSION,\n    description=\"An interactive, SSL-capable, man-in-the-middle HTTP proxy for penetration testers and software developers.\",\n    long_description=long_description,\n    url=\"http://mitmproxy.org\",\n    author=\"Aldo Cortesi\",\n    author_email=\"aldo@corte.si\",\n    license=\"MIT\",\n    classifiers=[\n        \"License :: OSI Approved :: MIT License\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Environment :: Console\",\n        \"Environment :: Console :: Curses\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Topic :: Security\",\n        \"Topic :: Internet\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Topic :: Internet :: Proxy Servers\",\n        \"Topic :: Software Development :: Testing\"\n    ],\n    packages=find_packages(include=[\n        \"mitmproxy\", \"mitmproxy.*\",\n        \"pathod\", \"pathod.*\",\n    ]),\n    include_package_data=True,\n    entry_points={\n        'console_scripts': [\n            \"mitmproxy = mitmproxy.tools.main:mitmproxy\",\n            \"mitmdump = mitmproxy.tools.main:mitmdump\",\n            \"mitmweb = mitmproxy.tools.main:mitmweb\",\n            \"pathod = pathod.pathod_cmdline:go_pathod\",\n            \"pathoc = pathod.pathoc_cmdline:go_pathoc\"\n        ]\n    },\n    # https://packaging.python.org/en/latest/requirements/#install-requires\n    # It is not considered best practice to use install_requires to pin dependencies to specific versions.\n    install_requires=[\n        \"blinker>=1.4, <1.5\",\n        \"brotlipy>=0.5.1, <0.8\",\n        \"certifi>=2015.11.20.1\",  # no semver here - this should always be on the last release!\n        \"click>=6.2, <7\",\n        \"cryptography>=2.0,<2.2\",\n        \"h2>=3.0, <4\",\n        \"hyperframe>=5.0, <6\",\n        \"kaitaistruct>=0.7, <0.8\",\n        \"ldap3>=2.2.0, <2.4\",\n        \"passlib>=1.6.5, <1.8\",\n        \"pyasn1>=0.3.1, <0.4\",\n        \"pyOpenSSL>=17.2,<17.4\",\n        \"pyparsing>=2.1.3, <2.3\",\n        \"pyperclip>=1.5.22, <1.6\",\n        \"requests>=2.9.1, <3\",\n        \"ruamel.yaml>=0.13.2, <0.16\",\n        \"sortedcontainers>=1.5.4, <1.6\",\n        \"tornado>=4.3, <4.6\",\n        \"urwid>=1.3.1, <1.4\",\n    ],\n    extras_require={\n        ':sys_platform == \"win32\"': [\n            \"pydivert>=2.0.3,<2.2\",\n        ],\n        'dev': [\n            \"flake8>=3.2.1, <3.5\",\n            \"Flask>=0.10.1, <0.13\",\n            \"mypy>=0.530,<0.541\",\n            \"pytest-cov>=2.2.1, <3\",\n            \"pytest-faulthandler>=1.3.0, <2\",\n            \"pytest-timeout>=1.0.0, <2\",\n            \"pytest-xdist>=1.14, <2\",\n            \"pytest>=3.1, <4\",\n            \"rstcheck>=2.2, <4.0\",\n            \"sphinx_rtd_theme>=0.1.9, <0.3\",\n            \"sphinx-autobuild>=0.5.2, <0.8\",\n            \"sphinx>=1.3.5, <1.7\",\n            \"sphinxcontrib-documentedlist>=0.5.0, <0.7\",\n            \"tox>=2.3, <3\",\n        ],\n        'examples': [\n            \"beautifulsoup4>=4.4.1, <4.7\",\n            \"Pillow>=4.3,<4.4\",\n        ]\n    }\n)\n", "path": "setup.py"}], "after_files": [{"content": "import os\nimport runpy\nfrom codecs import open\n\nfrom setuptools import setup, find_packages\n\n# Based on https://github.com/pypa/sampleproject/blob/master/setup.py\n# and https://python-packaging-user-guide.readthedocs.org/\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:\n    long_description = f.read()\n\nVERSION = runpy.run_path(os.path.join(here, \"mitmproxy\", \"version.py\"))[\"VERSION\"]\n\nsetup(\n    name=\"mitmproxy\",\n    version=VERSION,\n    description=\"An interactive, SSL-capable, man-in-the-middle HTTP proxy for penetration testers and software developers.\",\n    long_description=long_description,\n    url=\"http://mitmproxy.org\",\n    author=\"Aldo Cortesi\",\n    author_email=\"aldo@corte.si\",\n    license=\"MIT\",\n    classifiers=[\n        \"License :: OSI Approved :: MIT License\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Environment :: Console\",\n        \"Environment :: Console :: Curses\",\n        \"Operating System :: MacOS :: MacOS X\",\n        \"Operating System :: POSIX\",\n        \"Operating System :: Microsoft :: Windows\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Programming Language :: Python :: 3.5\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: Implementation :: CPython\",\n        \"Topic :: Security\",\n        \"Topic :: Internet\",\n        \"Topic :: Internet :: WWW/HTTP\",\n        \"Topic :: Internet :: Proxy Servers\",\n        \"Topic :: Software Development :: Testing\"\n    ],\n    packages=find_packages(include=[\n        \"mitmproxy\", \"mitmproxy.*\",\n        \"pathod\", \"pathod.*\",\n    ]),\n    include_package_data=True,\n    entry_points={\n        'console_scripts': [\n            \"mitmproxy = mitmproxy.tools.main:mitmproxy\",\n            \"mitmdump = mitmproxy.tools.main:mitmdump\",\n            \"mitmweb = mitmproxy.tools.main:mitmweb\",\n            \"pathod = pathod.pathod_cmdline:go_pathod\",\n            \"pathoc = pathod.pathoc_cmdline:go_pathoc\"\n        ]\n    },\n    # https://packaging.python.org/en/latest/requirements/#install-requires\n    # It is not considered best practice to use install_requires to pin dependencies to specific versions.\n    install_requires=[\n        \"blinker>=1.4, <1.5\",\n        \"brotlipy>=0.5.1, <0.8\",\n        \"certifi>=2015.11.20.1\",  # no semver here - this should always be on the last release!\n        \"click>=6.2, <7\",\n        \"cryptography>=2.0,<2.2\",\n        \"h2>=3.0, <4\",\n        \"hyperframe>=5.0, <6\",\n        \"kaitaistruct>=0.7, <0.8\",\n        \"ldap3>=2.2.0, <2.4\",\n        \"passlib>=1.6.5, <1.8\",\n        \"pyasn1>=0.3.1, <0.4\",\n        \"pyOpenSSL>=17.2,<17.4\",\n        \"pyparsing>=2.1.3, <2.3\",\n        \"pyperclip>=1.5.22, <1.6\",\n        \"requests>=2.9.1, <3\",\n        \"ruamel.yaml>=0.13.2, <0.16\",\n        \"sortedcontainers>=1.5.4, <1.6\",\n        \"tornado>=4.3, <4.6\",\n        \"urwid>=1.3.1, <1.4\",\n    ],\n    extras_require={\n        ':sys_platform == \"win32\"': [\n            \"pydivert>=2.0.3,<2.2\",\n        ],\n        'dev': [\n            \"flake8>=3.5, <3.6\",\n            \"Flask>=0.10.1, <0.13\",\n            \"mypy>=0.530,<0.541\",\n            \"pytest-cov>=2.2.1, <3\",\n            \"pytest-faulthandler>=1.3.0, <2\",\n            \"pytest-timeout>=1.0.0, <2\",\n            \"pytest-xdist>=1.14, <2\",\n            \"pytest>=3.1, <4\",\n            \"rstcheck>=2.2, <4.0\",\n            \"sphinx_rtd_theme>=0.1.9, <0.3\",\n            \"sphinx-autobuild>=0.5.2, <0.8\",\n            \"sphinx>=1.3.5, <1.7\",\n            \"sphinxcontrib-documentedlist>=0.5.0, <0.7\",\n            \"tox>=2.3, <3\",\n        ],\n        'examples': [\n            \"beautifulsoup4>=4.4.1, <4.7\",\n            \"Pillow>=4.3,<4.4\",\n        ]\n    }\n)\n", "path": "setup.py"}]}