prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Python == 2.7
  The read me states that
  
  ># Deprecated Python Versions
  >Python == 2.7
  
  It does not appear to work with Python == 2.7.  (link to question on [SO](https://stackoverflow.com/q/56731694/1841839))
  
  Should this note be removed from the [readme](https://github.com/googleapis/google-api-python-client/edit/master/README.md)?  to me deprecation means that it should still work just be removed soon.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `noxfile.py`
  Content:
  ```
  1 
  2 # Copyright 2020 Google LLC
  3 #
  4 # Licensed under the Apache License, Version 2.0 (the "License");
  5 # you may not use this file except in compliance with the License.
  6 # You may obtain a copy of the License at
  7 #
  8 #      http://www.apache.org/licenses/LICENSE-2.0
  9 #
  10 # Unless required by applicable law or agreed to in writing, software
  11 # distributed under the License is distributed on an "AS IS" BASIS,
  12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13 # See the License for the specific language governing permissions and
  14 # limitations under the License.
  15 
  16 import sys
  17 
  18 import nox
  19 
  20 test_dependencies = [
  21     "google-auth",
  22     "google-auth-httplib2",
  23     "mox",
  24     "parameterized",
  25     "pyopenssl",
  26     "pytest",
  27     "pytest-cov",
  28     "webtest",
  29     "coverage",
  30     "unittest2",
  31     "mock",
  32 ]
  33 
  34 
  35 @nox.session(python=["3.7"])
  36 def lint(session):
  37     session.install("flake8")
  38     session.run(
  39         "flake8",
  40         "googleapiclient",
  41         "tests",
  42         "--count",
  43         "--select=E9,F63,F7,F82",
  44         "--show-source",
  45         "--statistics",
  46     )
  47 
  48 
  49 @nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
  50 @nox.parametrize(
  51     "oauth2client",
  52     [
  53         "oauth2client<2dev",
  54         "oauth2client>=2,<=3dev",
  55         "oauth2client>=3,<=4dev",
  56         "oauth2client>=4,<=5dev",
  57     ],
  58 )
  59 def unit(session, oauth2client):
  60     session.install(*test_dependencies)
  61     session.install(oauth2client)
  62     if session.python < "3.0":
  63         session.install("django<2.0.0")
  64     else:
  65         session.install("django>=2.0.0")
  66 
  67     session.install('.')
  68 
  69     # Run py.test against the unit tests.
  70     session.run(
  71         "py.test",
  72         "--quiet",
  73         "--cov=googleapiclient",
  74         "--cov=tests",
  75         "--cov-append",
  76         "--cov-config=.coveragerc",
  77         "--cov-report=",
  78         "--cov-fail-under=85",
  79         "tests",
  80         *session.posargs,
  81     )
  82 
  83 
  84 @nox.session(python="3.6")
  85 def docs(session):
  86     session.install('.')
  87     session.run("python", "describe.py")
  ```
  
  Path: `setup.py`
  Content:
  ```
  1 # Copyright 2014 Google Inc. All Rights Reserved.
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #      http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 """Setup script for Google API Python client.
  16 
  17 Also installs included versions of third party libraries, if those libraries
  18 are not already installed.
  19 """
  20 from __future__ import print_function
  21 
  22 import sys
  23 
  24 if sys.version_info < (2, 7):
  25     print("google-api-python-client requires python version >= 2.7.", file=sys.stderr)
  26     sys.exit(1)
  27 if (3, 1) <= sys.version_info < (3, 4):
  28     print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr)
  29     sys.exit(1)
  30 
  31 import io
  32 import os
  33 from setuptools import setup
  34 
  35 packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"]
  36 
  37 install_requires = [
  38     "httplib2>=0.15.0,<1dev",
  39     "google-auth>=1.16.0",
  40     "google-auth-httplib2>=0.0.3",
  41     "google-api-core>=1.21.0,<2dev",
  42     "six>=1.13.0,<2dev",
  43     "uritemplate>=3.0.0,<4dev",
  44 ]
  45 
  46 package_root = os.path.abspath(os.path.dirname(__file__))
  47 
  48 readme_filename = os.path.join(package_root, "README.md")
  49 with io.open(readme_filename, encoding="utf-8") as readme_file:
  50     readme = readme_file.read()
  51 
  52 version = "1.12.8"
  53 
  54 setup(
  55     name="google-api-python-client",
  56     version=version,
  57     description="Google API Client Library for Python",
  58     long_description=readme,
  59     long_description_content_type='text/markdown',
  60     author="Google LLC",
  61     author_email="googleapis-packages@google.com",
  62     url="https://github.com/googleapis/google-api-python-client/",
  63     install_requires=install_requires,
  64     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
  65     packages=packages,
  66     package_data={},
  67     license="Apache 2.0",
  68     keywords="google api client",
  69     classifiers=[
  70         "Programming Language :: Python :: 2",
  71         "Programming Language :: Python :: 2.7",
  72         "Programming Language :: Python :: 3",
  73         "Programming Language :: Python :: 3.5",
  74         "Programming Language :: Python :: 3.6",
  75         "Programming Language :: Python :: 3.7",
  76         "Development Status :: 5 - Production/Stable",
  77         "Intended Audience :: Developers",
  78         "License :: OSI Approved :: Apache Software License",
  79         "Operating System :: OS Independent",
  80         "Topic :: Internet :: WWW/HTTP",
  81     ],
  82 )
  83
  ```
  --- 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/noxfile.py b/noxfile.py
  --- a/noxfile.py
  +++ b/noxfile.py
  @@ -18,6 +18,7 @@
   import nox
   
   test_dependencies = [
  +    "django>=2.0.0",
       "google-auth",
       "google-auth-httplib2",
       "mox",
  @@ -46,7 +47,7 @@
       )
   
   
  -@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"])
  +@nox.session(python=["3.6", "3.7", "3.8", "3.9"])
   @nox.parametrize(
       "oauth2client",
       [
  @@ -59,11 +60,6 @@
   def unit(session, oauth2client):
       session.install(*test_dependencies)
       session.install(oauth2client)
  -    if session.python < "3.0":
  -        session.install("django<2.0.0")
  -    else:
  -        session.install("django>=2.0.0")
  -
       session.install('.')
   
       # Run py.test against the unit tests.
  diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -21,11 +21,8 @@
   
   import sys
   
  -if sys.version_info < (2, 7):
  -    print("google-api-python-client requires python version >= 2.7.", file=sys.stderr)
  -    sys.exit(1)
  -if (3, 1) <= sys.version_info < (3, 4):
  -    print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr)
  +if sys.version_info < (3, 6):
  +    print("google-api-python-client requires python3 version >= 3.6.", file=sys.stderr)
       sys.exit(1)
   
   import io
  @@ -61,18 +58,17 @@
       author_email="googleapis-packages@google.com",
       url="https://github.com/googleapis/google-api-python-client/",
       install_requires=install_requires,
  -    python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
  +    python_requires=">=3.6",
       packages=packages,
       package_data={},
       license="Apache 2.0",
       keywords="google api client",
       classifiers=[
  -        "Programming Language :: Python :: 2",
  -        "Programming Language :: Python :: 2.7",
           "Programming Language :: Python :: 3",
  -        "Programming Language :: Python :: 3.5",
           "Programming Language :: Python :: 3.6",
           "Programming Language :: Python :: 3.7",
  +        "Programming Language :: Python :: 3.8",
  +        "Programming Language :: Python :: 3.9",
           "Development Status :: 5 - Production/Stable",
           "Intended Audience :: Developers",
           "License :: OSI Approved :: Apache Software License",
  
verification_info: {"golden_diff": "diff --git a/noxfile.py b/noxfile.py\n--- a/noxfile.py\n+++ b/noxfile.py\n@@ -18,6 +18,7 @@\n import nox\n \n test_dependencies = [\n+    \"django>=2.0.0\",\n     \"google-auth\",\n     \"google-auth-httplib2\",\n     \"mox\",\n@@ -46,7 +47,7 @@\n     )\n \n \n-@nox.session(python=[\"2.7\", \"3.5\", \"3.6\", \"3.7\", \"3.8\"])\n+@nox.session(python=[\"3.6\", \"3.7\", \"3.8\", \"3.9\"])\n @nox.parametrize(\n     \"oauth2client\",\n     [\n@@ -59,11 +60,6 @@\n def unit(session, oauth2client):\n     session.install(*test_dependencies)\n     session.install(oauth2client)\n-    if session.python < \"3.0\":\n-        session.install(\"django<2.0.0\")\n-    else:\n-        session.install(\"django>=2.0.0\")\n-\n     session.install('.')\n \n     # Run py.test against the unit tests.\ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -21,11 +21,8 @@\n \n import sys\n \n-if sys.version_info < (2, 7):\n-    print(\"google-api-python-client requires python version >= 2.7.\", file=sys.stderr)\n-    sys.exit(1)\n-if (3, 1) <= sys.version_info < (3, 4):\n-    print(\"google-api-python-client requires python3 version >= 3.4.\", file=sys.stderr)\n+if sys.version_info < (3, 6):\n+    print(\"google-api-python-client requires python3 version >= 3.6.\", file=sys.stderr)\n     sys.exit(1)\n \n import io\n@@ -61,18 +58,17 @@\n     author_email=\"googleapis-packages@google.com\",\n     url=\"https://github.com/googleapis/google-api-python-client/\",\n     install_requires=install_requires,\n-    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n+    python_requires=\">=3.6\",\n     packages=packages,\n     package_data={},\n     license=\"Apache 2.0\",\n     keywords=\"google api client\",\n     classifiers=[\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+        \"Programming Language :: Python :: 3.8\",\n+        \"Programming Language :: Python :: 3.9\",\n         \"Development Status :: 5 - Production/Stable\",\n         \"Intended Audience :: Developers\",\n         \"License :: OSI Approved :: Apache Software License\",\n", "issue": "Python == 2.7\nThe read me states that\r\n\r\n># Deprecated Python Versions\r\n>Python == 2.7\r\n\r\nIt does not appear to work with Python == 2.7.  (link to question on [SO](https://stackoverflow.com/q/56731694/1841839))\r\n\r\nShould this note be removed from the [readme](https://github.com/googleapis/google-api-python-client/edit/master/README.md)?  to me deprecation means that it should still work just be removed soon.\n", "before_files": [{"content": "\n# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport sys\n\nimport nox\n\ntest_dependencies = [\n    \"google-auth\",\n    \"google-auth-httplib2\",\n    \"mox\",\n    \"parameterized\",\n    \"pyopenssl\",\n    \"pytest\",\n    \"pytest-cov\",\n    \"webtest\",\n    \"coverage\",\n    \"unittest2\",\n    \"mock\",\n]\n\n\n@nox.session(python=[\"3.7\"])\ndef lint(session):\n    session.install(\"flake8\")\n    session.run(\n        \"flake8\",\n        \"googleapiclient\",\n        \"tests\",\n        \"--count\",\n        \"--select=E9,F63,F7,F82\",\n        \"--show-source\",\n        \"--statistics\",\n    )\n\n\n@nox.session(python=[\"2.7\", \"3.5\", \"3.6\", \"3.7\", \"3.8\"])\n@nox.parametrize(\n    \"oauth2client\",\n    [\n        \"oauth2client<2dev\",\n        \"oauth2client>=2,<=3dev\",\n        \"oauth2client>=3,<=4dev\",\n        \"oauth2client>=4,<=5dev\",\n    ],\n)\ndef unit(session, oauth2client):\n    session.install(*test_dependencies)\n    session.install(oauth2client)\n    if session.python < \"3.0\":\n        session.install(\"django<2.0.0\")\n    else:\n        session.install(\"django>=2.0.0\")\n\n    session.install('.')\n\n    # Run py.test against the unit tests.\n    session.run(\n        \"py.test\",\n        \"--quiet\",\n        \"--cov=googleapiclient\",\n        \"--cov=tests\",\n        \"--cov-append\",\n        \"--cov-config=.coveragerc\",\n        \"--cov-report=\",\n        \"--cov-fail-under=85\",\n        \"tests\",\n        *session.posargs,\n    )\n\n\n@nox.session(python=\"3.6\")\ndef docs(session):\n    session.install('.')\n    session.run(\"python\", \"describe.py\")", "path": "noxfile.py"}, {"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Setup script for Google API Python client.\n\nAlso installs included versions of third party libraries, if those libraries\nare not already installed.\n\"\"\"\nfrom __future__ import print_function\n\nimport sys\n\nif sys.version_info < (2, 7):\n    print(\"google-api-python-client requires python version >= 2.7.\", file=sys.stderr)\n    sys.exit(1)\nif (3, 1) <= sys.version_info < (3, 4):\n    print(\"google-api-python-client requires python3 version >= 3.4.\", file=sys.stderr)\n    sys.exit(1)\n\nimport io\nimport os\nfrom setuptools import setup\n\npackages = [\"apiclient\", \"googleapiclient\", \"googleapiclient/discovery_cache\"]\n\ninstall_requires = [\n    \"httplib2>=0.15.0,<1dev\",\n    \"google-auth>=1.16.0\",\n    \"google-auth-httplib2>=0.0.3\",\n    \"google-api-core>=1.21.0,<2dev\",\n    \"six>=1.13.0,<2dev\",\n    \"uritemplate>=3.0.0,<4dev\",\n]\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.md\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\nversion = \"1.12.8\"\n\nsetup(\n    name=\"google-api-python-client\",\n    version=version,\n    description=\"Google API Client Library for Python\",\n    long_description=readme,\n    long_description_content_type='text/markdown',\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    url=\"https://github.com/googleapis/google-api-python-client/\",\n    install_requires=install_requires,\n    python_requires=\">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*\",\n    packages=packages,\n    package_data={},\n    license=\"Apache 2.0\",\n    keywords=\"google api client\",\n    classifiers=[\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        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet :: WWW/HTTP\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "\n# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport sys\n\nimport nox\n\ntest_dependencies = [\n    \"django>=2.0.0\",\n    \"google-auth\",\n    \"google-auth-httplib2\",\n    \"mox\",\n    \"parameterized\",\n    \"pyopenssl\",\n    \"pytest\",\n    \"pytest-cov\",\n    \"webtest\",\n    \"coverage\",\n    \"unittest2\",\n    \"mock\",\n]\n\n\n@nox.session(python=[\"3.7\"])\ndef lint(session):\n    session.install(\"flake8\")\n    session.run(\n        \"flake8\",\n        \"googleapiclient\",\n        \"tests\",\n        \"--count\",\n        \"--select=E9,F63,F7,F82\",\n        \"--show-source\",\n        \"--statistics\",\n    )\n\n\n@nox.session(python=[\"3.6\", \"3.7\", \"3.8\", \"3.9\"])\n@nox.parametrize(\n    \"oauth2client\",\n    [\n        \"oauth2client<2dev\",\n        \"oauth2client>=2,<=3dev\",\n        \"oauth2client>=3,<=4dev\",\n        \"oauth2client>=4,<=5dev\",\n    ],\n)\ndef unit(session, oauth2client):\n    session.install(*test_dependencies)\n    session.install(oauth2client)\n    session.install('.')\n\n    # Run py.test against the unit tests.\n    session.run(\n        \"py.test\",\n        \"--quiet\",\n        \"--cov=googleapiclient\",\n        \"--cov=tests\",\n        \"--cov-append\",\n        \"--cov-config=.coveragerc\",\n        \"--cov-report=\",\n        \"--cov-fail-under=85\",\n        \"tests\",\n        *session.posargs,\n    )\n\n\n@nox.session(python=\"3.6\")\ndef docs(session):\n    session.install('.')\n    session.run(\"python\", \"describe.py\")", "path": "noxfile.py"}, {"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"Setup script for Google API Python client.\n\nAlso installs included versions of third party libraries, if those libraries\nare not already installed.\n\"\"\"\nfrom __future__ import print_function\n\nimport sys\n\nif sys.version_info < (3, 6):\n    print(\"google-api-python-client requires python3 version >= 3.6.\", file=sys.stderr)\n    sys.exit(1)\n\nimport io\nimport os\nfrom setuptools import setup\n\npackages = [\"apiclient\", \"googleapiclient\", \"googleapiclient/discovery_cache\"]\n\ninstall_requires = [\n    \"httplib2>=0.15.0,<1dev\",\n    \"google-auth>=1.16.0\",\n    \"google-auth-httplib2>=0.0.3\",\n    \"google-api-core>=1.21.0,<2dev\",\n    \"six>=1.13.0,<2dev\",\n    \"uritemplate>=3.0.0,<4dev\",\n]\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.md\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\nversion = \"1.12.8\"\n\nsetup(\n    name=\"google-api-python-client\",\n    version=version,\n    description=\"Google API Client Library for Python\",\n    long_description=readme,\n    long_description_content_type='text/markdown',\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    url=\"https://github.com/googleapis/google-api-python-client/\",\n    install_requires=install_requires,\n    python_requires=\">=3.6\",\n    packages=packages,\n    package_data={},\n    license=\"Apache 2.0\",\n    keywords=\"google api client\",\n    classifiers=[\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet :: WWW/HTTP\",\n    ],\n)\n", "path": "setup.py"}]}