prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [MAINT] AttributeError: module 'kymatio' has no attribute '__version__'
  This came up in #172
  
  PEP 396 has introduced the convention of exposing the constant `__version__` to the top-level module
  At the moment this is in `kymatio.version.version` (so that `version.py` can be loaded in `setup.py` without importing the whole `kymatio` module)
  https://www.python.org/dev/peps/pep-0396/
  
  Will submit a PR later
  
  
  </issue>
  <code>
  [start of kymatio/__init__.py]
  1 __all__ = [
  2             'Scattering3D',
  3             'Scattering2D',
  4             'Scattering1D'
  5             ]
  6 
  7 from .scattering2d.scattering2d import Scattering2D
  8 from .scattering1d.scattering1d import Scattering1D
  9 from .scattering3d.scattering3d import Scattering3D
  10 
  11 # Make sure that DeprecationWarning within this package always gets printed
  12 ### Snippet copied from sklearn.__init__
  13 import warnings
  14 import re
  15 warnings.filterwarnings('always', category=DeprecationWarning,
  16                         module=r'^{0}.*'.format(re.escape(__name__)))
  17 ### End Snippet
  18 
  19 
  20
  [end of kymatio/__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/kymatio/__init__.py b/kymatio/__init__.py
  --- a/kymatio/__init__.py
  +++ b/kymatio/__init__.py
  @@ -1,13 +1,3 @@
  -__all__ = [
  -            'Scattering3D',
  -            'Scattering2D',
  -            'Scattering1D'
  -            ]
  -
  -from .scattering2d.scattering2d import Scattering2D
  -from .scattering1d.scattering1d import Scattering1D
  -from .scattering3d.scattering3d import Scattering3D
  -
   # Make sure that DeprecationWarning within this package always gets printed
   ### Snippet copied from sklearn.__init__
   import warnings
  @@ -16,4 +6,14 @@
                           module=r'^{0}.*'.format(re.escape(__name__)))
   ### End Snippet
   
  +__all__ = [
  +            'Scattering1D',
  +            'Scattering2D',
  +            'Scattering3D'
  +            ]
  +
  +from .scattering1d.scattering1d import Scattering1D
  +from .scattering2d.scattering2d import Scattering2D
  +from .scattering3d.scattering3d import Scattering3D
   
  +from .version import version as __version__
  
verification_info: {"golden_diff": "diff --git a/kymatio/__init__.py b/kymatio/__init__.py\n--- a/kymatio/__init__.py\n+++ b/kymatio/__init__.py\n@@ -1,13 +1,3 @@\n-__all__ = [\n-            'Scattering3D',\n-            'Scattering2D',\n-            'Scattering1D'\n-            ]\n-\n-from .scattering2d.scattering2d import Scattering2D\n-from .scattering1d.scattering1d import Scattering1D\n-from .scattering3d.scattering3d import Scattering3D\n-\n # Make sure that DeprecationWarning within this package always gets printed\n ### Snippet copied from sklearn.__init__\n import warnings\n@@ -16,4 +6,14 @@\n                         module=r'^{0}.*'.format(re.escape(__name__)))\n ### End Snippet\n \n+__all__ = [\n+            'Scattering1D',\n+            'Scattering2D',\n+            'Scattering3D'\n+            ]\n+\n+from .scattering1d.scattering1d import Scattering1D\n+from .scattering2d.scattering2d import Scattering2D\n+from .scattering3d.scattering3d import Scattering3D\n \n+from .version import version as __version__\n", "issue": "[MAINT] AttributeError: module 'kymatio' has no attribute '__version__'\nThis came up in #172\r\n\r\nPEP 396 has introduced the convention of exposing the constant `__version__` to the top-level module\r\nAt the moment this is in `kymatio.version.version` (so that `version.py` can be loaded in `setup.py` without importing the whole `kymatio` module)\r\nhttps://www.python.org/dev/peps/pep-0396/\r\n\r\nWill submit a PR later\r\n\n", "before_files": [{"content": "__all__ = [\n            'Scattering3D',\n            'Scattering2D',\n            'Scattering1D'\n            ]\n\nfrom .scattering2d.scattering2d import Scattering2D\nfrom .scattering1d.scattering1d import Scattering1D\nfrom .scattering3d.scattering3d import Scattering3D\n\n# Make sure that DeprecationWarning within this package always gets printed\n### Snippet copied from sklearn.__init__\nimport warnings\nimport re\nwarnings.filterwarnings('always', category=DeprecationWarning,\n                        module=r'^{0}.*'.format(re.escape(__name__)))\n### End Snippet\n\n\n", "path": "kymatio/__init__.py"}]}