We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Replace pyaml dependency with PyYAML
There is a dependency on pyaml in setup.py:

https://github.com/spulec/moto/blob/master/setup.py#L18

I think that this is intended to be PyYAML (which pyaml depends on), and I do not see any usages of pyaml itself in this codebase.

pyaml uses WTFPL (https://github.com/mk-fg/pretty-yaml/blob/master/COPYING) which is not approved by the OSI (https://opensource.org/minutes20090304)

--- 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 from __future__ import unicode_literals
3 import setuptools
4 from setuptools import setup, find_packages
5 import sys
6 
7 
8 install_requires = [
9     "Jinja2>=2.7.3",
10     "boto>=2.36.0",
11     "boto3>=1.6.16",
12     "botocore>=1.12.13",
13     "cryptography>=2.3.0",
14     "requests>=2.5",
15     "xmltodict",
16     "six>1.9",
17     "werkzeug",
18     "pyaml",
19     "pytz",
20     "python-dateutil<3.0.0,>=2.1",
21     "python-jose<3.0.0",
22     "mock",
23     "docker>=2.5.1",
24     "jsondiff==1.1.1",
25     "aws-xray-sdk!=0.96,>=0.93",
26     "responses>=0.9.0",
27 ]
28 
29 extras_require = {
30     'server': ['flask'],
31 }
32 
33 # https://hynek.me/articles/conditional-python-dependencies/
34 if int(setuptools.__version__.split(".", 1)[0]) < 18:
35     if sys.version_info[0:2] < (3, 3):
36         install_requires.append("backports.tempfile")
37 else:
38     extras_require[":python_version<'3.3'"] = ["backports.tempfile"]
39 
40 
41 setup(
42     name='moto',
43     version='1.3.7',
44     description='A library that allows your python tests to easily'
45                 ' mock out the boto library',
46     author='Steve Pulec',
47     author_email='spulec@gmail.com',
48     url='https://github.com/spulec/moto',
49     entry_points={
50         'console_scripts': [
51             'moto_server = moto.server:main',
52         ],
53     },
54     packages=find_packages(exclude=("tests", "tests.*")),
55     install_requires=install_requires,
56     extras_require=extras_require,
57     include_package_data=True,
58     license="Apache",
59     test_suite="tests",
60     classifiers=[
61         "Programming Language :: Python :: 2",
62         "Programming Language :: Python :: 2.7",
63         "Programming Language :: Python :: 3",
64         "Programming Language :: Python :: 3.3",
65         "Programming Language :: Python :: 3.4",
66         "Programming Language :: Python :: 3.5",
67         "Programming Language :: Python :: 3.6",
68         "License :: OSI Approved :: Apache Software License",
69         "Topic :: Software Development :: Testing",
70     ],
71 )
72
```
--- 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
@@ -15,7 +15,7 @@
     "xmltodict",
     "six>1.9",
     "werkzeug",
-    "pyaml",
+    "PyYAML",
     "pytz",
     "python-dateutil<3.0.0,>=2.1",
     "python-jose<3.0.0",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -15,7 +15,7 @@\n     \"xmltodict\",\n     \"six>1.9\",\n     \"werkzeug\",\n-    \"pyaml\",\n+    \"PyYAML\",\n     \"pytz\",\n     \"python-dateutil<3.0.0,>=2.1\",\n     \"python-jose<3.0.0\",\n", "issue": "Replace pyaml dependency with PyYAML\nThere is a dependency on pyaml in setup.py:\r\n\r\nhttps://github.com/spulec/moto/blob/master/setup.py#L18\r\n\r\nI think that this is intended to be PyYAML (which pyaml depends on), and I do not see any usages of pyaml itself in this codebase.\r\n\r\npyaml uses WTFPL (https://github.com/mk-fg/pretty-yaml/blob/master/COPYING) which is not approved by the OSI (https://opensource.org/minutes20090304)\n", "before_files": [{"content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nimport setuptools\nfrom setuptools import setup, find_packages\nimport sys\n\n\ninstall_requires = [\n    \"Jinja2>=2.7.3\",\n    \"boto>=2.36.0\",\n    \"boto3>=1.6.16\",\n    \"botocore>=1.12.13\",\n    \"cryptography>=2.3.0\",\n    \"requests>=2.5\",\n    \"xmltodict\",\n    \"six>1.9\",\n    \"werkzeug\",\n    \"pyaml\",\n    \"pytz\",\n    \"python-dateutil<3.0.0,>=2.1\",\n    \"python-jose<3.0.0\",\n    \"mock\",\n    \"docker>=2.5.1\",\n    \"jsondiff==1.1.1\",\n    \"aws-xray-sdk!=0.96,>=0.93\",\n    \"responses>=0.9.0\",\n]\n\nextras_require = {\n    'server': ['flask'],\n}\n\n# https://hynek.me/articles/conditional-python-dependencies/\nif int(setuptools.__version__.split(\".\", 1)[0]) < 18:\n    if sys.version_info[0:2] < (3, 3):\n        install_requires.append(\"backports.tempfile\")\nelse:\n    extras_require[\":python_version<'3.3'\"] = [\"backports.tempfile\"]\n\n\nsetup(\n    name='moto',\n    version='1.3.7',\n    description='A library that allows your python tests to easily'\n                ' mock out the boto library',\n    author='Steve Pulec',\n    author_email='spulec@gmail.com',\n    url='https://github.com/spulec/moto',\n    entry_points={\n        'console_scripts': [\n            'moto_server = moto.server:main',\n        ],\n    },\n    packages=find_packages(exclude=(\"tests\", \"tests.*\")),\n    install_requires=install_requires,\n    extras_require=extras_require,\n    include_package_data=True,\n    license=\"Apache\",\n    test_suite=\"tests\",\n    classifiers=[\n        \"Programming Language :: Python :: 2\",\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        \"License :: OSI Approved :: Apache Software License\",\n        \"Topic :: Software Development :: Testing\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nimport setuptools\nfrom setuptools import setup, find_packages\nimport sys\n\n\ninstall_requires = [\n    \"Jinja2>=2.7.3\",\n    \"boto>=2.36.0\",\n    \"boto3>=1.6.16\",\n    \"botocore>=1.12.13\",\n    \"cryptography>=2.3.0\",\n    \"requests>=2.5\",\n    \"xmltodict\",\n    \"six>1.9\",\n    \"werkzeug\",\n    \"PyYAML\",\n    \"pytz\",\n    \"python-dateutil<3.0.0,>=2.1\",\n    \"python-jose<3.0.0\",\n    \"mock\",\n    \"docker>=2.5.1\",\n    \"jsondiff==1.1.1\",\n    \"aws-xray-sdk!=0.96,>=0.93\",\n    \"responses>=0.9.0\",\n]\n\nextras_require = {\n    'server': ['flask'],\n}\n\n# https://hynek.me/articles/conditional-python-dependencies/\nif int(setuptools.__version__.split(\".\", 1)[0]) < 18:\n    if sys.version_info[0:2] < (3, 3):\n        install_requires.append(\"backports.tempfile\")\nelse:\n    extras_require[\":python_version<'3.3'\"] = [\"backports.tempfile\"]\n\n\nsetup(\n    name='moto',\n    version='1.3.7',\n    description='A library that allows your python tests to easily'\n                ' mock out the boto library',\n    author='Steve Pulec',\n    author_email='spulec@gmail.com',\n    url='https://github.com/spulec/moto',\n    entry_points={\n        'console_scripts': [\n            'moto_server = moto.server:main',\n        ],\n    },\n    packages=find_packages(exclude=(\"tests\", \"tests.*\")),\n    install_requires=install_requires,\n    extras_require=extras_require,\n    include_package_data=True,\n    license=\"Apache\",\n    test_suite=\"tests\",\n    classifiers=[\n        \"Programming Language :: Python :: 2\",\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        \"License :: OSI Approved :: Apache Software License\",\n        \"Topic :: Software Development :: Testing\",\n    ],\n)\n", "path": "setup.py"}]}