prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Update pysaml2 to 4.6.0 (or higher) to fix CVE-2017-1000246
  * https://nvd.nist.gov/vuln/detail/CVE-2017-1000246
  * https://github.com/IdentityPython/pysaml2/issues/417
  
  Currently blocked on https://github.com/knaperek/djangosaml2/issues/129.
  
  
  
  </issue>
  <code>
  [start of setup.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 from setuptools import setup, find_packages
  5 
  6 # This script (for now) is only intended to install the 'relate' content helper
  7 # script.  relate-validate. Its use is not needed for (and unrelated to)
  8 # deploying RELATE as a web service.
  9 
  10 # Use 'pip install -r requirements.txt' first to install prerequisites.
  11 
  12 setup(name="relate-courseware",
  13       version="2016.1",
  14       description="RELATE courseware",
  15       long_description=open("README.rst", "rt").read(),
  16 
  17       scripts=["bin/relate"],
  18       author="Andreas Kloeckner",
  19       url="https://github.com/inducer/relate",
  20       author_email="inform@tiker.net",
  21       license="MIT",
  22       packages=find_packages(exclude=['tests']),
  23       install_requires=[
  24           "django>=1.10,<2.1",
  25           "django-crispy-forms>=1.5.1",
  26           "colorama",
  27           "markdown",
  28           "dulwich",
  29           "pyyaml",
  30           "nbconvert>=5.2.1",
  31           "pymbolic",
  32           "sympy",
  33           ],
  34       package_data={
  35           "relate": [
  36               "templates/*.html",
  37               ],
  38           "course": [
  39               "templates/course/*.html",
  40               "templates/course/jinja2/*.tpl",
  41               ],
  42           },
  43       )
  44
  [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
  @@ -4,10 +4,11 @@
   from setuptools import setup, find_packages
   
   # This script (for now) is only intended to install the 'relate' content helper
  -# script.  relate-validate. Its use is not needed for (and unrelated to)
  -# deploying RELATE as a web service.
  +# script. Its use is not needed for (and unrelated to) deploying RELATE as a
  +# web service.
   
  -# Use 'pip install -r requirements.txt' first to install prerequisites.
  +# Use 'pip install -r requirements.txt' to install prerequisites for RELATE as
  +# a web service.
   
   setup(name="relate-courseware",
         version="2016.1",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -4,10 +4,11 @@\n from setuptools import setup, find_packages\n \n # This script (for now) is only intended to install the 'relate' content helper\n-# script.  relate-validate. Its use is not needed for (and unrelated to)\n-# deploying RELATE as a web service.\n+# script. Its use is not needed for (and unrelated to) deploying RELATE as a\n+# web service.\n \n-# Use 'pip install -r requirements.txt' first to install prerequisites.\n+# Use 'pip install -r requirements.txt' to install prerequisites for RELATE as\n+# a web service.\n \n setup(name=\"relate-courseware\",\n       version=\"2016.1\",\n", "issue": "Update pysaml2 to 4.6.0 (or higher) to fix CVE-2017-1000246\n* https://nvd.nist.gov/vuln/detail/CVE-2017-1000246\r\n* https://github.com/IdentityPython/pysaml2/issues/417\r\n\r\nCurrently blocked on https://github.com/knaperek/djangosaml2/issues/129.\r\n\r\n\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n# This script (for now) is only intended to install the 'relate' content helper\n# script.  relate-validate. Its use is not needed for (and unrelated to)\n# deploying RELATE as a web service.\n\n# Use 'pip install -r requirements.txt' first to install prerequisites.\n\nsetup(name=\"relate-courseware\",\n      version=\"2016.1\",\n      description=\"RELATE courseware\",\n      long_description=open(\"README.rst\", \"rt\").read(),\n\n      scripts=[\"bin/relate\"],\n      author=\"Andreas Kloeckner\",\n      url=\"https://github.com/inducer/relate\",\n      author_email=\"inform@tiker.net\",\n      license=\"MIT\",\n      packages=find_packages(exclude=['tests']),\n      install_requires=[\n          \"django>=1.10,<2.1\",\n          \"django-crispy-forms>=1.5.1\",\n          \"colorama\",\n          \"markdown\",\n          \"dulwich\",\n          \"pyyaml\",\n          \"nbconvert>=5.2.1\",\n          \"pymbolic\",\n          \"sympy\",\n          ],\n      package_data={\n          \"relate\": [\n              \"templates/*.html\",\n              ],\n          \"course\": [\n              \"templates/course/*.html\",\n              \"templates/course/jinja2/*.tpl\",\n              ],\n          },\n      )\n", "path": "setup.py"}]}