prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Run Flake8 lint on RHEL6
  Currently, flake8 is run only on RHEL7 and 8 and not on RHEL6. According to [the documentation](http://flake8.pycqa.org/en/latest/#installation) it is necessary to run flake8 with the exact Python version that is used. Thus to be sure that the syntax is ok even for the older Python version, we have to run in to RHEL6 too.
  
  Tackled in #1251.
  
  </issue>
  <code>
  [start of setup.py]
  1 import os
  2 from setuptools import setup, find_packages
  3 
  4 __here__ = os.path.dirname(os.path.abspath(__file__))
  5 
  6 package_info = dict.fromkeys(["RELEASE", "COMMIT", "VERSION", "NAME"])
  7 
  8 for name in package_info:
  9     with open(os.path.join(__here__, "insights", name)) as f:
  10         package_info[name] = f.read().strip()
  11 
  12 entry_points = {
  13     'console_scripts': [
  14         'insights-run = insights:main',
  15         'insights-info = insights.tools.query:main',
  16         'gen_api = insights.tools.generate_api_config:main',
  17         'insights-perf = insights.tools.perf:main',
  18         'client = insights.client:run',
  19         'mangle = insights.util.mangle:main'
  20     ]
  21 }
  22 
  23 runtime = set([
  24     'pyyaml>=3.10,<=3.13',
  25     'six',
  26 ])
  27 
  28 
  29 def maybe_require(pkg):
  30     try:
  31         __import__(pkg)
  32     except ImportError:
  33         runtime.add(pkg)
  34 
  35 
  36 maybe_require("importlib")
  37 maybe_require("argparse")
  38 
  39 
  40 client = set([
  41     'requests',
  42     'pyOpenSSL',
  43 ])
  44 
  45 develop = set([
  46     'futures==3.0.5',
  47     'requests==2.13.0',
  48     'wheel',
  49 ])
  50 
  51 docs = set([
  52     'Sphinx==1.7.9',
  53     'nbsphinx==0.3.1',
  54     'sphinx_rtd_theme',
  55     'ipython<6',
  56     'colorama',
  57 ])
  58 
  59 testing = set([
  60     'coverage==4.3.4',
  61     'pytest==3.0.6',
  62     'pytest-cov==2.4.0',
  63     'mock==2.0.0',
  64 ])
  65 
  66 linting = set([
  67     'flake8==3.3.0',
  68 ])
  69 
  70 optional = set([
  71     'jinja2',
  72     'python-cjson',
  73     'python-logstash',
  74     'python-statsd',
  75     'watchdog',
  76 ])
  77 
  78 if __name__ == "__main__":
  79     # allows for runtime modification of rpm name
  80     name = os.environ.get("INSIGHTS_CORE_NAME", package_info["NAME"])
  81 
  82     setup(
  83         name=name,
  84         version=package_info["VERSION"],
  85         description="Insights Core is a data collection and analysis framework",
  86         long_description=open("README.rst").read(),
  87         url="https://github.com/redhatinsights/insights-core",
  88         author="Red Hat, Inc.",
  89         author_email="insights@redhat.com",
  90         packages=find_packages(),
  91         install_requires=list(runtime),
  92         package_data={'': ['LICENSE']},
  93         license='Apache 2.0',
  94         extras_require={
  95             'develop': list(runtime | develop | client | docs | linting | testing),
  96             'client': list(runtime | client),
  97             'optional': list(optional),
  98             'docs': list(docs),
  99             'linting': list(linting | client),
  100             'testing': list(testing | client)
  101         },
  102         classifiers=[
  103             'Development Status :: 5 - Production/Stable',
  104             'Intended Audience :: Developers',
  105             'Natural Language :: English',
  106             'License :: OSI Approved :: Apache Software License',
  107             'Programming Language :: Python',
  108             'Programming Language :: Python :: 2.6',
  109             'Programming Language :: Python :: 2.7',
  110             'Programming Language :: Python :: 3.3',
  111             'Programming Language :: Python :: 3.4',
  112             'Programming Language :: Python :: 3.5',
  113             'Programming Language :: Python :: 3.6'
  114         ],
  115         entry_points=entry_points,
  116         include_package_data=True
  117     )
  118
  [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
  @@ -64,7 +64,7 @@
   ])
   
   linting = set([
  -    'flake8==3.3.0',
  +    'flake8==2.6.2',
   ])
   
   optional = set([
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -64,7 +64,7 @@\n ])\n \n linting = set([\n-    'flake8==3.3.0',\n+    'flake8==2.6.2',\n ])\n \n optional = set([\n", "issue": "Run Flake8 lint on RHEL6\nCurrently, flake8 is run only on RHEL7 and 8 and not on RHEL6. According to [the documentation](http://flake8.pycqa.org/en/latest/#installation) it is necessary to run flake8 with the exact Python version that is used. Thus to be sure that the syntax is ok even for the older Python version, we have to run in to RHEL6 too.\r\n\r\nTackled in #1251.\n", "before_files": [{"content": "import os\nfrom setuptools import setup, find_packages\n\n__here__ = os.path.dirname(os.path.abspath(__file__))\n\npackage_info = dict.fromkeys([\"RELEASE\", \"COMMIT\", \"VERSION\", \"NAME\"])\n\nfor name in package_info:\n    with open(os.path.join(__here__, \"insights\", name)) as f:\n        package_info[name] = f.read().strip()\n\nentry_points = {\n    'console_scripts': [\n        'insights-run = insights:main',\n        'insights-info = insights.tools.query:main',\n        'gen_api = insights.tools.generate_api_config:main',\n        'insights-perf = insights.tools.perf:main',\n        'client = insights.client:run',\n        'mangle = insights.util.mangle:main'\n    ]\n}\n\nruntime = set([\n    'pyyaml>=3.10,<=3.13',\n    'six',\n])\n\n\ndef maybe_require(pkg):\n    try:\n        __import__(pkg)\n    except ImportError:\n        runtime.add(pkg)\n\n\nmaybe_require(\"importlib\")\nmaybe_require(\"argparse\")\n\n\nclient = set([\n    'requests',\n    'pyOpenSSL',\n])\n\ndevelop = set([\n    'futures==3.0.5',\n    'requests==2.13.0',\n    'wheel',\n])\n\ndocs = set([\n    'Sphinx==1.7.9',\n    'nbsphinx==0.3.1',\n    'sphinx_rtd_theme',\n    'ipython<6',\n    'colorama',\n])\n\ntesting = set([\n    'coverage==4.3.4',\n    'pytest==3.0.6',\n    'pytest-cov==2.4.0',\n    'mock==2.0.0',\n])\n\nlinting = set([\n    'flake8==3.3.0',\n])\n\noptional = set([\n    'jinja2',\n    'python-cjson',\n    'python-logstash',\n    'python-statsd',\n    'watchdog',\n])\n\nif __name__ == \"__main__\":\n    # allows for runtime modification of rpm name\n    name = os.environ.get(\"INSIGHTS_CORE_NAME\", package_info[\"NAME\"])\n\n    setup(\n        name=name,\n        version=package_info[\"VERSION\"],\n        description=\"Insights Core is a data collection and analysis framework\",\n        long_description=open(\"README.rst\").read(),\n        url=\"https://github.com/redhatinsights/insights-core\",\n        author=\"Red Hat, Inc.\",\n        author_email=\"insights@redhat.com\",\n        packages=find_packages(),\n        install_requires=list(runtime),\n        package_data={'': ['LICENSE']},\n        license='Apache 2.0',\n        extras_require={\n            'develop': list(runtime | develop | client | docs | linting | testing),\n            'client': list(runtime | client),\n            'optional': list(optional),\n            'docs': list(docs),\n            'linting': list(linting | client),\n            'testing': list(testing | client)\n        },\n        classifiers=[\n            'Development Status :: 5 - Production/Stable',\n            'Intended Audience :: Developers',\n            'Natural Language :: English',\n            'License :: OSI Approved :: Apache Software License',\n            'Programming Language :: Python',\n            'Programming Language :: Python :: 2.6',\n            'Programming Language :: Python :: 2.7',\n            'Programming Language :: Python :: 3.3',\n            'Programming Language :: Python :: 3.4',\n            'Programming Language :: Python :: 3.5',\n            'Programming Language :: Python :: 3.6'\n        ],\n        entry_points=entry_points,\n        include_package_data=True\n    )\n", "path": "setup.py"}]}