prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  urllib3 1.11 does not provide the extra 'secure'
  I tried with Python 2.7 and 2.6 inside different virtualenv.
  
  ``` bash
  pip install 'urllib3[secure]'
  ```
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 
  3 from distutils.core import setup
  4 
  5 import os
  6 import re
  7 
  8 try:
  9     import setuptools
  10 except ImportError:
  11     pass # No 'develop' command, oh well.
  12 
  13 base_path = os.path.dirname(__file__)
  14 
  15 # Get the version (borrowed from SQLAlchemy)
  16 fp = open(os.path.join(base_path, 'urllib3', '__init__.py'))
  17 VERSION = re.compile(r".*__version__ = '(.*?)'",
  18                      re.S).match(fp.read()).group(1)
  19 fp.close()
  20 
  21 
  22 version = VERSION
  23 
  24 setup(name='urllib3',
  25       version=version,
  26       description="HTTP library with thread-safe connection pooling, file post, and more.",
  27       long_description=open('README.rst').read() + '\n\n' + open('CHANGES.rst').read(),
  28       classifiers=[
  29           'Environment :: Web Environment',
  30           'Intended Audience :: Developers',
  31           'License :: OSI Approved :: MIT License',
  32           'Operating System :: OS Independent',
  33           'Programming Language :: Python',
  34           'Programming Language :: Python :: 2',
  35           'Programming Language :: Python :: 3',
  36           'Topic :: Internet :: WWW/HTTP',
  37           'Topic :: Software Development :: Libraries',
  38       ],
  39       keywords='urllib httplib threadsafe filepost http https ssl pooling',
  40       author='Andrey Petrov',
  41       author_email='andrey.petrov@shazow.net',
  42       url='http://urllib3.readthedocs.org/',
  43       license='MIT',
  44       packages=['urllib3',
  45                 'urllib3.packages', 'urllib3.packages.ssl_match_hostname',
  46                 'urllib3.contrib', 'urllib3.util',
  47                 ],
  48       requires=[],
  49       tests_require=[
  50           # These are a less-specific subset of dev-requirements.txt, for the
  51           # convenience of distro package maintainers.
  52           'nose',
  53           'mock',
  54           'tornado',
  55       ],
  56       test_suite='test',
  57       extras_require={
  58           'secure;python_version<="2.7"': [
  59               'pyOpenSSL',
  60               'ndg-httpsclient',
  61               'pyasn1',
  62               'certifi',
  63           ],
  64           'secure;python_version>"2.7"': [
  65               'certifi',
  66           ],
  67       },
  68       )
  69
  [end of setup.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -55,14 +55,11 @@
         ],
         test_suite='test',
         extras_require={
  -          'secure;python_version<="2.7"': [
  +          'secure': [
                 'pyOpenSSL',
                 'ndg-httpsclient',
                 'pyasn1',
                 'certifi',
             ],
  -          'secure;python_version>"2.7"': [
  -              'certifi',
  -          ],
         },
         )
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -55,14 +55,11 @@\n       ],\n       test_suite='test',\n       extras_require={\n-          'secure;python_version<=\"2.7\"': [\n+          'secure': [\n               'pyOpenSSL',\n               'ndg-httpsclient',\n               'pyasn1',\n               'certifi',\n           ],\n-          'secure;python_version>\"2.7\"': [\n-              'certifi',\n-          ],\n       },\n       )\n", "issue": "urllib3 1.11 does not provide the extra 'secure'\nI tried with Python 2.7 and 2.6 inside different virtualenv.\n\n``` bash\npip install 'urllib3[secure]'\n```\n\n", "before_files": [{"content": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\nimport re\n\ntry:\n    import setuptools\nexcept ImportError:\n    pass # No 'develop' command, oh well.\n\nbase_path = os.path.dirname(__file__)\n\n# Get the version (borrowed from SQLAlchemy)\nfp = open(os.path.join(base_path, 'urllib3', '__init__.py'))\nVERSION = re.compile(r\".*__version__ = '(.*?)'\",\n                     re.S).match(fp.read()).group(1)\nfp.close()\n\n\nversion = VERSION\n\nsetup(name='urllib3',\n      version=version,\n      description=\"HTTP library with thread-safe connection pooling, file post, and more.\",\n      long_description=open('README.rst').read() + '\\n\\n' + open('CHANGES.rst').read(),\n      classifiers=[\n          'Environment :: Web Environment',\n          'Intended Audience :: Developers',\n          'License :: OSI Approved :: MIT License',\n          'Operating System :: OS Independent',\n          'Programming Language :: Python',\n          'Programming Language :: Python :: 2',\n          'Programming Language :: Python :: 3',\n          'Topic :: Internet :: WWW/HTTP',\n          'Topic :: Software Development :: Libraries',\n      ],\n      keywords='urllib httplib threadsafe filepost http https ssl pooling',\n      author='Andrey Petrov',\n      author_email='andrey.petrov@shazow.net',\n      url='http://urllib3.readthedocs.org/',\n      license='MIT',\n      packages=['urllib3',\n                'urllib3.packages', 'urllib3.packages.ssl_match_hostname',\n                'urllib3.contrib', 'urllib3.util',\n                ],\n      requires=[],\n      tests_require=[\n          # These are a less-specific subset of dev-requirements.txt, for the\n          # convenience of distro package maintainers.\n          'nose',\n          'mock',\n          'tornado',\n      ],\n      test_suite='test',\n      extras_require={\n          'secure;python_version<=\"2.7\"': [\n              'pyOpenSSL',\n              'ndg-httpsclient',\n              'pyasn1',\n              'certifi',\n          ],\n          'secure;python_version>\"2.7\"': [\n              'certifi',\n          ],\n      },\n      )\n", "path": "setup.py"}]}