prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `continuous_integration/show-python-packages-versions.py`
  Content:
  ```
  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 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/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"}], "after_files": [{"content": "import sys\n\nDEPENDENCIES = ['six', '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"}]}