prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Django 1.10 support
  https://github.com/kavdev/dj-stripe/blob/master/djstripe/__init__.py#L19
  
  `'1.10'` is less than `'1.7.x'`
  
  
  </issue>
  <code>
  [start of djstripe/__init__.py]
  1 from __future__ import unicode_literals
  2 import warnings
  3 
  4 from django import get_version as get_django_version
  5 
  6 __title__ = "dj-stripe"
  7 __summary__ = "Django + Stripe Made Easy"
  8 __uri__ = "https://github.com/kavdev/dj-stripe/"
  9 
  10 __version__ = "0.9.0.dev0"
  11 
  12 __author__ = "Alexander Kavanaugh"
  13 __email__ = "contact@kavdev.io"
  14 
  15 __license__ = "BSD"
  16 __license__ = "License :: OSI Approved :: BSD License"
  17 __copyright__ = "Copyright 2016 Alexander Kavanaugh"
  18 
  19 if get_django_version() <= '1.7.x':
  20     msg = "dj-stripe deprecation notice: Django 1.7 and lower are no longer\n" \
  21         "supported. Please upgrade to Django 1.8 or higher.\n" \
  22         "Reference: https://github.com/kavdev/dj-stripe/issues/275"
  23     warnings.warn(msg)
  24
  [end of djstripe/__init__.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/djstripe/__init__.py b/djstripe/__init__.py
  --- a/djstripe/__init__.py
  +++ b/djstripe/__init__.py
  @@ -1,7 +1,7 @@
   from __future__ import unicode_literals
   import warnings
   
  -from django import get_version as get_django_version
  +from django import VERSION as django_version
   
   __title__ = "dj-stripe"
   __summary__ = "Django + Stripe Made Easy"
  @@ -16,7 +16,7 @@
   __license__ = "License :: OSI Approved :: BSD License"
   __copyright__ = "Copyright 2016 Alexander Kavanaugh"
   
  -if get_django_version() <= '1.7.x':
  +if django_version < (1, 8):
       msg = "dj-stripe deprecation notice: Django 1.7 and lower are no longer\n" \
           "supported. Please upgrade to Django 1.8 or higher.\n" \
           "Reference: https://github.com/kavdev/dj-stripe/issues/275"
  
verification_info: {"golden_diff": "diff --git a/djstripe/__init__.py b/djstripe/__init__.py\n--- a/djstripe/__init__.py\n+++ b/djstripe/__init__.py\n@@ -1,7 +1,7 @@\n from __future__ import unicode_literals\n import warnings\n \n-from django import get_version as get_django_version\n+from django import VERSION as django_version\n \n __title__ = \"dj-stripe\"\n __summary__ = \"Django + Stripe Made Easy\"\n@@ -16,7 +16,7 @@\n __license__ = \"License :: OSI Approved :: BSD License\"\n __copyright__ = \"Copyright 2016 Alexander Kavanaugh\"\n \n-if get_django_version() <= '1.7.x':\n+if django_version < (1, 8):\n     msg = \"dj-stripe deprecation notice: Django 1.7 and lower are no longer\\n\" \\\n         \"supported. Please upgrade to Django 1.8 or higher.\\n\" \\\n         \"Reference: https://github.com/kavdev/dj-stripe/issues/275\"\n", "issue": "Django 1.10 support\nhttps://github.com/kavdev/dj-stripe/blob/master/djstripe/__init__.py#L19\n\n`'1.10'` is less than `'1.7.x'`\n\n", "before_files": [{"content": "from __future__ import unicode_literals\nimport warnings\n\nfrom django import get_version as get_django_version\n\n__title__ = \"dj-stripe\"\n__summary__ = \"Django + Stripe Made Easy\"\n__uri__ = \"https://github.com/kavdev/dj-stripe/\"\n\n__version__ = \"0.9.0.dev0\"\n\n__author__ = \"Alexander Kavanaugh\"\n__email__ = \"contact@kavdev.io\"\n\n__license__ = \"BSD\"\n__license__ = \"License :: OSI Approved :: BSD License\"\n__copyright__ = \"Copyright 2016 Alexander Kavanaugh\"\n\nif get_django_version() <= '1.7.x':\n    msg = \"dj-stripe deprecation notice: Django 1.7 and lower are no longer\\n\" \\\n        \"supported. Please upgrade to Django 1.8 or higher.\\n\" \\\n        \"Reference: https://github.com/kavdev/dj-stripe/issues/275\"\n    warnings.warn(msg)\n", "path": "djstripe/__init__.py"}]}