prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  # -*- coding: utf-8 -*- is not consistently used in all Python source files
  - Cookiecutter version:
    Cookiecutter 1.4.0
  - Template project url:
    none
  - Python version:
    3.5
  - Operating System:
    OS X
    ### Description:
    # -_\- coding: utf-8 -_\- is not consistently used in all Python source files
  ### What I've run:
  
  Nothing, it's an observation of an inconsistency in the project.
  
  
  --- 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 
  3 import os
  4 import io
  5 import sys
  6 
  7 from setuptools import setup
  8 
  9 version = "1.4.0"
  10 
  11 if sys.argv[-1] == 'publish':
  12     os.system('python setup.py sdist upload')
  13     os.system('python setup.py bdist_wheel upload')
  14     sys.exit()
  15 
  16 if sys.argv[-1] == 'tag':
  17     os.system("git tag -a %s -m 'version %s'" % (version, version))
  18     os.system("git push --tags")
  19     sys.exit()
  20 
  21 with io.open('README.rst', 'r', encoding='utf-8') as readme_file:
  22     readme = readme_file.read()
  23 
  24 with io.open('HISTORY.rst', 'r', encoding='utf-8') as history_file:
  25     history = history_file.read().replace('.. :changelog:', '')
  26 
  27 requirements = [
  28     'future>=0.15.2',
  29     'binaryornot>=0.2.0',
  30     'jinja2>=2.7',
  31     'click>=5.0',
  32     'whichcraft>=0.4.0',
  33     'poyo>=0.1.0',
  34     'jinja2-time>=0.1.0'
  35 ]
  36 
  37 long_description = readme + '\n\n' + history
  38 
  39 if sys.argv[-1] == 'readme':
  40     print(long_description)
  41     sys.exit()
  42 
  43 
  44 setup(
  45     name='cookiecutter',
  46     version=version,
  47     description=('A command-line utility that creates projects from project '
  48                  'templates, e.g. creating a Python package project from a '
  49                  'Python package project template.'),
  50     long_description=long_description,
  51     author='Audrey Roy',
  52     author_email='audreyr@gmail.com',
  53     url='https://github.com/audreyr/cookiecutter',
  54     packages=[
  55         'cookiecutter',
  56     ],
  57     package_dir={'cookiecutter': 'cookiecutter'},
  58     entry_points={
  59         'console_scripts': [
  60             'cookiecutter = cookiecutter.__main__:main',
  61         ]
  62     },
  63     include_package_data=True,
  64     install_requires=requirements,
  65     license='BSD',
  66     zip_safe=False,
  67     classifiers=[
  68         'Development Status :: 5 - Production/Stable',
  69         'Environment :: Console',
  70         'Intended Audience :: Developers',
  71         'Natural Language :: English',
  72         'License :: OSI Approved :: BSD License',
  73         'Programming Language :: Python',
  74         'Programming Language :: Python :: 2',
  75         'Programming Language :: Python :: 2.7',
  76         'Programming Language :: Python :: 3',
  77         'Programming Language :: Python :: 3.3',
  78         'Programming Language :: Python :: 3.4',
  79         'Programming Language :: Python :: 3.5',
  80         'Programming Language :: Python :: Implementation :: CPython',
  81         'Programming Language :: Python :: Implementation :: PyPy',
  82         'Topic :: Software Development',
  83     ],
  84     keywords=(
  85         'cookiecutter, Python, projects, project templates, Jinja2, '
  86         'skeleton, scaffolding, project directory, setup.py, package, '
  87         'packaging'
  88     ),
  89 )
  90
  ```
  
  Path: `cookiecutter/__main__.py`
  Content:
  ```
  1 """Allow cookiecutter to be executable through `python -m cookiecutter`."""
  2 from __future__ import absolute_import
  3 
  4 from .cli import main
  5 
  6 
  7 if __name__ == "__main__":  # pragma: no cover
  8     main(prog_name="cookiecutter")
  9
  ```
  
  Path: `__main__.py`
  Content:
  ```
  1 """Allow cookiecutter to be executable from a checkout or zip file."""
  2 import runpy
  3 
  4 
  5 if __name__ == "__main__":
  6     runpy.run_module("cookiecutter", run_name="__main__")
  7
  ```
  --- 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/__main__.py b/__main__.py
  --- a/__main__.py
  +++ b/__main__.py
  @@ -1,3 +1,4 @@
  +# -*- coding: utf-8 -*-
   """Allow cookiecutter to be executable from a checkout or zip file."""
   import runpy
   
  diff --git a/cookiecutter/__main__.py b/cookiecutter/__main__.py
  --- a/cookiecutter/__main__.py
  +++ b/cookiecutter/__main__.py
  @@ -1,3 +1,4 @@
  +# -*- coding: utf-8 -*-
   """Allow cookiecutter to be executable through `python -m cookiecutter`."""
   from __future__ import absolute_import
   
  diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -1,4 +1,5 @@
   #!/usr/bin/env python
  +# -*- coding: utf-8 -*-
   
   import os
   import io
  
verification_info: {"golden_diff": "diff --git a/__main__.py b/__main__.py\n--- a/__main__.py\n+++ b/__main__.py\n@@ -1,3 +1,4 @@\n+# -*- coding: utf-8 -*-\n \"\"\"Allow cookiecutter to be executable from a checkout or zip file.\"\"\"\n import runpy\n \ndiff --git a/cookiecutter/__main__.py b/cookiecutter/__main__.py\n--- a/cookiecutter/__main__.py\n+++ b/cookiecutter/__main__.py\n@@ -1,3 +1,4 @@\n+# -*- coding: utf-8 -*-\n \"\"\"Allow cookiecutter to be executable through `python -m cookiecutter`.\"\"\"\n from __future__ import absolute_import\n \ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -1,4 +1,5 @@\n #!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n \n import os\n import io\n", "issue": "# -*- coding: utf-8 -*- is not consistently used in all Python source files\n- Cookiecutter version:\n  Cookiecutter 1.4.0\n- Template project url:\n  none\n- Python version:\n  3.5\n- Operating System:\n  OS X\n  ### Description:\n  # -_\\- coding: utf-8 -_\\- is not consistently used in all Python source files\n### What I've run:\n\nNothing, it's an observation of an inconsistency in the project.\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.4.0\"\n\nif sys.argv[-1] == 'publish':\n    os.system('python setup.py sdist upload')\n    os.system('python setup.py bdist_wheel upload')\n    sys.exit()\n\nif sys.argv[-1] == 'tag':\n    os.system(\"git tag -a %s -m 'version %s'\" % (version, version))\n    os.system(\"git push --tags\")\n    sys.exit()\n\nwith io.open('README.rst', 'r', encoding='utf-8') as readme_file:\n    readme = readme_file.read()\n\nwith io.open('HISTORY.rst', 'r', encoding='utf-8') as history_file:\n    history = history_file.read().replace('.. :changelog:', '')\n\nrequirements = [\n    'future>=0.15.2',\n    'binaryornot>=0.2.0',\n    'jinja2>=2.7',\n    'click>=5.0',\n    'whichcraft>=0.4.0',\n    'poyo>=0.1.0',\n    'jinja2-time>=0.1.0'\n]\n\nlong_description = readme + '\\n\\n' + history\n\nif sys.argv[-1] == 'readme':\n    print(long_description)\n    sys.exit()\n\n\nsetup(\n    name='cookiecutter',\n    version=version,\n    description=('A command-line utility that creates projects from project '\n                 'templates, e.g. creating a Python package project from a '\n                 'Python package project template.'),\n    long_description=long_description,\n    author='Audrey Roy',\n    author_email='audreyr@gmail.com',\n    url='https://github.com/audreyr/cookiecutter',\n    packages=[\n        'cookiecutter',\n    ],\n    package_dir={'cookiecutter': 'cookiecutter'},\n    entry_points={\n        'console_scripts': [\n            'cookiecutter = cookiecutter.__main__:main',\n        ]\n    },\n    include_package_data=True,\n    install_requires=requirements,\n    license='BSD',\n    zip_safe=False,\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Natural Language :: English',\n        'License :: OSI Approved :: BSD License',\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.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 :: Software Development',\n    ],\n    keywords=(\n        'cookiecutter, Python, projects, project templates, Jinja2, '\n        'skeleton, scaffolding, project directory, setup.py, package, '\n        'packaging'\n    ),\n)\n", "path": "setup.py"}, {"content": "\"\"\"Allow cookiecutter to be executable through `python -m cookiecutter`.\"\"\"\nfrom __future__ import absolute_import\n\nfrom .cli import main\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    main(prog_name=\"cookiecutter\")\n", "path": "cookiecutter/__main__.py"}, {"content": "\"\"\"Allow cookiecutter to be executable from a checkout or zip file.\"\"\"\nimport runpy\n\n\nif __name__ == \"__main__\":\n    runpy.run_module(\"cookiecutter\", run_name=\"__main__\")\n", "path": "__main__.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport io\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.4.0\"\n\nif sys.argv[-1] == 'publish':\n    os.system('python setup.py sdist upload')\n    os.system('python setup.py bdist_wheel upload')\n    sys.exit()\n\nif sys.argv[-1] == 'tag':\n    os.system(\"git tag -a %s -m 'version %s'\" % (version, version))\n    os.system(\"git push --tags\")\n    sys.exit()\n\nwith io.open('README.rst', 'r', encoding='utf-8') as readme_file:\n    readme = readme_file.read()\n\nwith io.open('HISTORY.rst', 'r', encoding='utf-8') as history_file:\n    history = history_file.read().replace('.. :changelog:', '')\n\nrequirements = [\n    'future>=0.15.2',\n    'binaryornot>=0.2.0',\n    'jinja2>=2.7',\n    'click>=5.0',\n    'whichcraft>=0.4.0',\n    'poyo>=0.1.0',\n    'jinja2-time>=0.1.0'\n]\n\nlong_description = readme + '\\n\\n' + history\n\nif sys.argv[-1] == 'readme':\n    print(long_description)\n    sys.exit()\n\n\nsetup(\n    name='cookiecutter',\n    version=version,\n    description=('A command-line utility that creates projects from project '\n                 'templates, e.g. creating a Python package project from a '\n                 'Python package project template.'),\n    long_description=long_description,\n    author='Audrey Roy',\n    author_email='audreyr@gmail.com',\n    url='https://github.com/audreyr/cookiecutter',\n    packages=[\n        'cookiecutter',\n    ],\n    package_dir={'cookiecutter': 'cookiecutter'},\n    entry_points={\n        'console_scripts': [\n            'cookiecutter = cookiecutter.__main__:main',\n        ]\n    },\n    include_package_data=True,\n    install_requires=requirements,\n    license='BSD',\n    zip_safe=False,\n    classifiers=[\n        'Development Status :: 5 - Production/Stable',\n        'Environment :: Console',\n        'Intended Audience :: Developers',\n        'Natural Language :: English',\n        'License :: OSI Approved :: BSD License',\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.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 :: Software Development',\n    ],\n    keywords=(\n        'cookiecutter, Python, projects, project templates, Jinja2, '\n        'skeleton, scaffolding, project directory, setup.py, package, '\n        'packaging'\n    ),\n)\n", "path": "setup.py"}, {"content": "# -*- coding: utf-8 -*-\n\"\"\"Allow cookiecutter to be executable through `python -m cookiecutter`.\"\"\"\nfrom __future__ import absolute_import\n\nfrom .cli import main\n\n\nif __name__ == \"__main__\":  # pragma: no cover\n    main(prog_name=\"cookiecutter\")\n", "path": "cookiecutter/__main__.py"}, {"content": "# -*- coding: utf-8 -*-\n\"\"\"Allow cookiecutter to be executable from a checkout or zip file.\"\"\"\nimport runpy\n\n\nif __name__ == \"__main__\":\n    runpy.run_module(\"cookiecutter\", run_name=\"__main__\")\n", "path": "__main__.py"}]}