prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  upgrade to PyYAML 5.2
  PyYAML 5.2 is out, with more security fixes.  aws-cli pins to an older version, preventing upgrades.  Please update the pin.
  
  --- 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 #!/usr/bin/env python
  2 import codecs
  3 import os.path
  4 import re
  5 import sys
  6 
  7 from setuptools import setup, find_packages
  8 
  9 
  10 here = os.path.abspath(os.path.dirname(__file__))
  11 
  12 
  13 def read(*parts):
  14     return codecs.open(os.path.join(here, *parts), 'r').read()
  15 
  16 
  17 def find_version(*file_paths):
  18     version_file = read(*file_paths)
  19     version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
  20                               version_file, re.M)
  21     if version_match:
  22         return version_match.group(1)
  23     raise RuntimeError("Unable to find version string.")
  24 
  25 
  26 install_requires = ['botocore==1.13.38',
  27                     'docutils>=0.10,<0.16',
  28                     'rsa>=3.1.2,<=3.5.0',
  29                     's3transfer>=0.2.0,<0.3.0']
  30 
  31 
  32 if sys.version_info[:2] == (2, 6):
  33     # For python2.6 we have to require argparse since it
  34     # was not in stdlib until 2.7.
  35     install_requires.append('argparse>=1.1')
  36 
  37     # For Python 2.6, we have to require a different verion of PyYAML since the latest
  38     # versions dropped support for Python 2.6.
  39     install_requires.append('PyYAML>=3.10,<=3.13')
  40 
  41     # Colorama removed support for EOL pythons.
  42     install_requires.append('colorama>=0.2.5,<=0.3.9')
  43 elif sys.version_info[:2] == (3, 3):
  44     install_requires.append('PyYAML>=3.10,<=3.13')
  45     # Colorama removed support for EOL pythons.
  46     install_requires.append('colorama>=0.2.5,<=0.3.9')
  47 else:
  48     install_requires.append('PyYAML>=3.10,<5.2')
  49     install_requires.append('colorama>=0.2.5,<0.4.2')
  50 
  51 
  52 setup_options = dict(
  53     name='awscli',
  54     version=find_version("awscli", "__init__.py"),
  55     description='Universal Command Line Environment for AWS.',
  56     long_description=read('README.rst'),
  57     author='Amazon Web Services',
  58     url='http://aws.amazon.com/cli/',
  59     scripts=['bin/aws', 'bin/aws.cmd',
  60              'bin/aws_completer', 'bin/aws_zsh_completer.sh',
  61              'bin/aws_bash_completer'],
  62     packages=find_packages(exclude=['tests*']),
  63     package_data={'awscli': ['data/*.json', 'examples/*/*.rst',
  64                              'examples/*/*.txt', 'examples/*/*/*.txt',
  65                              'examples/*/*/*.rst', 'topics/*.rst',
  66                              'topics/*.json']},
  67     install_requires=install_requires,
  68     extras_require={
  69         ':python_version=="2.6"': [
  70             'argparse>=1.1',
  71         ]
  72     },
  73     license="Apache License 2.0",
  74     classifiers=[
  75         'Development Status :: 5 - Production/Stable',
  76         'Intended Audience :: Developers',
  77         'Intended Audience :: System Administrators',
  78         'Natural Language :: English',
  79         'License :: OSI Approved :: Apache Software License',
  80         'Programming Language :: Python',
  81         'Programming Language :: Python :: 2',
  82         'Programming Language :: Python :: 2.6',
  83         'Programming Language :: Python :: 2.7',
  84         'Programming Language :: Python :: 3',
  85         'Programming Language :: Python :: 3.3',
  86         'Programming Language :: Python :: 3.4',
  87         'Programming Language :: Python :: 3.5',
  88         'Programming Language :: Python :: 3.6',
  89         'Programming Language :: Python :: 3.7',
  90     ],
  91 )
  92 
  93 if 'py2exe' in sys.argv:
  94     # This will actually give us a py2exe command.
  95     import py2exe
  96     # And we have some py2exe specific options.
  97     setup_options['options'] = {
  98         'py2exe': {
  99             'optimize': 0,
  100             'skip_archive': True,
  101             'dll_excludes': ['crypt32.dll'],
  102             'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',
  103                          'awscli', 'ConfigParser', 'xml.etree', 'pipes'],
  104         }
  105     }
  106     setup_options['console'] = ['bin/aws']
  107 
  108 
  109 setup(**setup_options)
  110
  ```
  --- 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
  @@ -45,7 +45,7 @@
       # Colorama removed support for EOL pythons.
       install_requires.append('colorama>=0.2.5,<=0.3.9')
   else:
  -    install_requires.append('PyYAML>=3.10,<5.2')
  +    install_requires.append('PyYAML>=3.10,<5.3')
       install_requires.append('colorama>=0.2.5,<0.4.2')
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -45,7 +45,7 @@\n     # Colorama removed support for EOL pythons.\n     install_requires.append('colorama>=0.2.5,<=0.3.9')\n else:\n-    install_requires.append('PyYAML>=3.10,<5.2')\n+    install_requires.append('PyYAML>=3.10,<5.3')\n     install_requires.append('colorama>=0.2.5,<0.4.2')\n", "issue": "upgrade to PyYAML 5.2\nPyYAML 5.2 is out, with more security fixes.  aws-cli pins to an older version, preventing upgrades.  Please update the pin.\n", "before_files": [{"content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n                              version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\ninstall_requires = ['botocore==1.13.38',\n                    'docutils>=0.10,<0.16',\n                    'rsa>=3.1.2,<=3.5.0',\n                    's3transfer>=0.2.0,<0.3.0']\n\n\nif sys.version_info[:2] == (2, 6):\n    # For python2.6 we have to require argparse since it\n    # was not in stdlib until 2.7.\n    install_requires.append('argparse>=1.1')\n\n    # For Python 2.6, we have to require a different verion of PyYAML since the latest\n    # versions dropped support for Python 2.6.\n    install_requires.append('PyYAML>=3.10,<=3.13')\n\n    # Colorama removed support for EOL pythons.\n    install_requires.append('colorama>=0.2.5,<=0.3.9')\nelif sys.version_info[:2] == (3, 3):\n    install_requires.append('PyYAML>=3.10,<=3.13')\n    # Colorama removed support for EOL pythons.\n    install_requires.append('colorama>=0.2.5,<=0.3.9')\nelse:\n    install_requires.append('PyYAML>=3.10,<5.2')\n    install_requires.append('colorama>=0.2.5,<0.4.2')\n\n\nsetup_options = dict(\n    name='awscli',\n    version=find_version(\"awscli\", \"__init__.py\"),\n    description='Universal Command Line Environment for AWS.',\n    long_description=read('README.rst'),\n    author='Amazon Web Services',\n    url='http://aws.amazon.com/cli/',\n    scripts=['bin/aws', 'bin/aws.cmd',\n             'bin/aws_completer', 'bin/aws_zsh_completer.sh',\n             'bin/aws_bash_completer'],\n    packages=find_packages(exclude=['tests*']),\n    package_data={'awscli': ['data/*.json', 'examples/*/*.rst',\n                             'examples/*/*.txt', 'examples/*/*/*.txt',\n                             'examples/*/*/*.rst', 'topics/*.rst',\n                             'topics/*.json']},\n    install_requires=install_requires,\n    extras_require={\n        ':python_version==\"2.6\"': [\n            'argparse>=1.1',\n        ]\n    },\n    license=\"Apache License 2.0\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Natural Language :: English',\n        'License :: OSI Approved :: Apache Software License',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n\nif 'py2exe' in sys.argv:\n    # This will actually give us a py2exe command.\n    import py2exe\n    # And we have some py2exe specific options.\n    setup_options['options'] = {\n        'py2exe': {\n            'optimize': 0,\n            'skip_archive': True,\n            'dll_excludes': ['crypt32.dll'],\n            'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',\n                         'awscli', 'ConfigParser', 'xml.etree', 'pipes'],\n        }\n    }\n    setup_options['console'] = ['bin/aws']\n\n\nsetup(**setup_options)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nimport codecs\nimport os.path\nimport re\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(*parts):\n    return codecs.open(os.path.join(here, *parts), 'r').read()\n\n\ndef find_version(*file_paths):\n    version_file = read(*file_paths)\n    version_match = re.search(r\"^__version__ = ['\\\"]([^'\\\"]*)['\\\"]\",\n                              version_file, re.M)\n    if version_match:\n        return version_match.group(1)\n    raise RuntimeError(\"Unable to find version string.\")\n\n\ninstall_requires = ['botocore==1.13.38',\n                    'docutils>=0.10,<0.16',\n                    'rsa>=3.1.2,<=3.5.0',\n                    's3transfer>=0.2.0,<0.3.0']\n\n\nif sys.version_info[:2] == (2, 6):\n    # For python2.6 we have to require argparse since it\n    # was not in stdlib until 2.7.\n    install_requires.append('argparse>=1.1')\n\n    # For Python 2.6, we have to require a different verion of PyYAML since the latest\n    # versions dropped support for Python 2.6.\n    install_requires.append('PyYAML>=3.10,<=3.13')\n\n    # Colorama removed support for EOL pythons.\n    install_requires.append('colorama>=0.2.5,<=0.3.9')\nelif sys.version_info[:2] == (3, 3):\n    install_requires.append('PyYAML>=3.10,<=3.13')\n    # Colorama removed support for EOL pythons.\n    install_requires.append('colorama>=0.2.5,<=0.3.9')\nelse:\n    install_requires.append('PyYAML>=3.10,<5.3')\n    install_requires.append('colorama>=0.2.5,<0.4.2')\n\n\nsetup_options = dict(\n    name='awscli',\n    version=find_version(\"awscli\", \"__init__.py\"),\n    description='Universal Command Line Environment for AWS.',\n    long_description=read('README.rst'),\n    author='Amazon Web Services',\n    url='http://aws.amazon.com/cli/',\n    scripts=['bin/aws', 'bin/aws.cmd',\n             'bin/aws_completer', 'bin/aws_zsh_completer.sh',\n             'bin/aws_bash_completer'],\n    packages=find_packages(exclude=['tests*']),\n    package_data={'awscli': ['data/*.json', 'examples/*/*.rst',\n                             'examples/*/*.txt', 'examples/*/*/*.txt',\n                             'examples/*/*/*.rst', 'topics/*.rst',\n                             'topics/*.json']},\n    install_requires=install_requires,\n    extras_require={\n        ':python_version==\"2.6\"': [\n            'argparse>=1.1',\n        ]\n    },\n    license=\"Apache License 2.0\",\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Intended Audience :: Developers',\n        'Intended Audience :: System Administrators',\n        'Natural Language :: English',\n        'License :: OSI Approved :: Apache Software License',\n        'Programming Language :: Python',\n        'Programming Language :: Python :: 2',\n        'Programming Language :: Python :: 2.6',\n        'Programming Language :: Python :: 2.7',\n        'Programming Language :: Python :: 3',\n        'Programming Language :: Python :: 3.3',\n        'Programming Language :: Python :: 3.4',\n        'Programming Language :: Python :: 3.5',\n        'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',\n    ],\n)\n\nif 'py2exe' in sys.argv:\n    # This will actually give us a py2exe command.\n    import py2exe\n    # And we have some py2exe specific options.\n    setup_options['options'] = {\n        'py2exe': {\n            'optimize': 0,\n            'skip_archive': True,\n            'dll_excludes': ['crypt32.dll'],\n            'packages': ['docutils', 'urllib', 'httplib', 'HTMLParser',\n                         'awscli', 'ConfigParser', 'xml.etree', 'pipes'],\n        }\n    }\n    setup_options['console'] = ['bin/aws']\n\n\nsetup(**setup_options)\n", "path": "setup.py"}]}