prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add test for compatibility of old version of six
  For the moment, we are compatible with the latest version of six. Recently, somebody pointed out that we did not support six 1.5.2. We should investigate, decide which version we should be compatible with and then add this to Travis.
  
  
  </issue>
  <code>
  [start of continuous_integration/show-python-packages-versions.py]
  1 import sys
  2 
  3 DEPENDENCIES = ['numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']
  4 
  5 
  6 def print_package_version(package_name, indent='  '):
  7     try:
  8         package = __import__(package_name)
  9         version = getattr(package, '__version__', None)
  10         package_file = getattr(package, '__file__', )
  11         provenance_info = '{0} from {1}'.format(version, package_file)
  12     except ImportError:
  13         provenance_info = 'not installed'
  14 
  15     print('{0}{1}: {2}'.format(indent, package_name, provenance_info))
  16 
  17 if __name__ == '__main__':
  18     print('=' * 120)
  19     print('Python %s' % str(sys.version))
  20     print('from: %s\n' % sys.executable)
  21 
  22     print('Dependencies versions')
  23     for package_name in DEPENDENCIES:
  24         print_package_version(package_name)
  25     print('=' * 120)
  26
  [end of continuous_integration/show-python-packages-versions.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/continuous_integration/show-python-packages-versions.py b/continuous_integration/show-python-packages-versions.py
  --- a/continuous_integration/show-python-packages-versions.py
  +++ b/continuous_integration/show-python-packages-versions.py
  @@ -1,6 +1,6 @@
   import sys
   
  -DEPENDENCIES = ['numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']
  +DEPENDENCIES = ['six', 'numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']
   
   
   def print_package_version(package_name, indent='  '):
  
verification_info: {"golden_diff": "diff --git a/continuous_integration/show-python-packages-versions.py b/continuous_integration/show-python-packages-versions.py\n--- a/continuous_integration/show-python-packages-versions.py\n+++ b/continuous_integration/show-python-packages-versions.py\n@@ -1,6 +1,6 @@\n import sys\n \n-DEPENDENCIES = ['numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']\n+DEPENDENCIES = ['six', 'numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']\n \n \n def print_package_version(package_name, indent='  '):\n", "issue": "Add test for compatibility of old version of six\nFor the moment, we are compatible with the latest version of six. Recently, somebody pointed out that we did not support six 1.5.2. We should investigate, decide which version we should be compatible with and then add this to Travis.\n\n", "before_files": [{"content": "import sys\n\nDEPENDENCIES = ['numpy', 'scipy', 'sklearn', 'matplotlib', 'nibabel']\n\n\ndef print_package_version(package_name, indent='  '):\n    try:\n        package = __import__(package_name)\n        version = getattr(package, '__version__', None)\n        package_file = getattr(package, '__file__', )\n        provenance_info = '{0} from {1}'.format(version, package_file)\n    except ImportError:\n        provenance_info = 'not installed'\n\n    print('{0}{1}: {2}'.format(indent, package_name, provenance_info))\n\nif __name__ == '__main__':\n    print('=' * 120)\n    print('Python %s' % str(sys.version))\n    print('from: %s\\n' % sys.executable)\n\n    print('Dependencies versions')\n    for package_name in DEPENDENCIES:\n        print_package_version(package_name)\n    print('=' * 120)\n", "path": "continuous_integration/show-python-packages-versions.py"}]}