prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  AttributeError: module 'googleapiclient' has no attribute '__version__'
  When importing new version of google-api-python-client
  `from apiclient import discovery`
  i'm getting the error
  `AttributeError: module 'googleapiclient' has no attribute '__version__'`
  
  https://github.com/googleapis/google-api-python-client/blob/84d45619d753cb04d957651886231034194058b6/apiclient/__init__.py#L22
  
  i guess this happens since you have removed `__version__` var from `googleapiclient/__init__.py`
  
  https://github.com/googleapis/google-api-python-client/commit/f706cfd821ab7457e5db37abfc3619772657dd0e#diff-b926d296d4c856bcbf877809e4523562L15
  
  can you please fix? @busunkim96 @mik-laj @crwilcox 
  
  Traceback:
  ```    from apiclient import discovery
    File "/usr/local/lib/python3.7/site-packages/apiclient/__init__.py", line 22, in <module>
      __version__ = googleapiclient.__version__
  AttributeError: module 'googleapiclient' has no attribute '__version__'
  
  </issue>
  <code>
  [start of apiclient/__init__.py]
  1 """Retain apiclient as an alias for googleapiclient."""
  2 
  3 from six import iteritems
  4 
  5 import googleapiclient
  6 
  7 from googleapiclient import channel
  8 from googleapiclient import discovery
  9 from googleapiclient import errors
  10 from googleapiclient import http
  11 from googleapiclient import mimeparse
  12 from googleapiclient import model
  13 
  14 try:
  15     from googleapiclient import sample_tools
  16 except ImportError:
  17     # Silently ignore, because the vast majority of consumers won't use it and
  18     # it has deep dependence on oauth2client, an optional dependency.
  19     sample_tools = None
  20 from googleapiclient import schema
  21 
  22 __version__ = googleapiclient.__version__
  23 
  24 _SUBMODULES = {
  25     "channel": channel,
  26     "discovery": discovery,
  27     "errors": errors,
  28     "http": http,
  29     "mimeparse": mimeparse,
  30     "model": model,
  31     "sample_tools": sample_tools,
  32     "schema": schema,
  33 }
  34 
  35 import sys
  36 
  37 for module_name, module in iteritems(_SUBMODULES):
  38     sys.modules["apiclient.%s" % module_name] = module
  39
  [end of apiclient/__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/apiclient/__init__.py b/apiclient/__init__.py
  --- a/apiclient/__init__.py
  +++ b/apiclient/__init__.py
  @@ -19,8 +19,6 @@
       sample_tools = None
   from googleapiclient import schema
   
  -__version__ = googleapiclient.__version__
  -
   _SUBMODULES = {
       "channel": channel,
       "discovery": discovery,
  
verification_info: {"golden_diff": "diff --git a/apiclient/__init__.py b/apiclient/__init__.py\n--- a/apiclient/__init__.py\n+++ b/apiclient/__init__.py\n@@ -19,8 +19,6 @@\n     sample_tools = None\n from googleapiclient import schema\n \n-__version__ = googleapiclient.__version__\n-\n _SUBMODULES = {\n     \"channel\": channel,\n     \"discovery\": discovery,\n", "issue": "AttributeError: module 'googleapiclient' has no attribute '__version__'\nWhen importing new version of google-api-python-client\r\n`from apiclient import discovery`\r\ni'm getting the error\r\n`AttributeError: module 'googleapiclient' has no attribute '__version__'`\r\n\r\nhttps://github.com/googleapis/google-api-python-client/blob/84d45619d753cb04d957651886231034194058b6/apiclient/__init__.py#L22\r\n\r\ni guess this happens since you have removed `__version__` var from `googleapiclient/__init__.py`\r\n\r\nhttps://github.com/googleapis/google-api-python-client/commit/f706cfd821ab7457e5db37abfc3619772657dd0e#diff-b926d296d4c856bcbf877809e4523562L15\r\n\r\ncan you please fix? @busunkim96 @mik-laj @crwilcox \r\n\r\nTraceback:\r\n```    from apiclient import discovery\r\n  File \"/usr/local/lib/python3.7/site-packages/apiclient/__init__.py\", line 22, in <module>\r\n    __version__ = googleapiclient.__version__\r\nAttributeError: module 'googleapiclient' has no attribute '__version__'\n", "before_files": [{"content": "\"\"\"Retain apiclient as an alias for googleapiclient.\"\"\"\n\nfrom six import iteritems\n\nimport googleapiclient\n\nfrom googleapiclient import channel\nfrom googleapiclient import discovery\nfrom googleapiclient import errors\nfrom googleapiclient import http\nfrom googleapiclient import mimeparse\nfrom googleapiclient import model\n\ntry:\n    from googleapiclient import sample_tools\nexcept ImportError:\n    # Silently ignore, because the vast majority of consumers won't use it and\n    # it has deep dependence on oauth2client, an optional dependency.\n    sample_tools = None\nfrom googleapiclient import schema\n\n__version__ = googleapiclient.__version__\n\n_SUBMODULES = {\n    \"channel\": channel,\n    \"discovery\": discovery,\n    \"errors\": errors,\n    \"http\": http,\n    \"mimeparse\": mimeparse,\n    \"model\": model,\n    \"sample_tools\": sample_tools,\n    \"schema\": schema,\n}\n\nimport sys\n\nfor module_name, module in iteritems(_SUBMODULES):\n    sys.modules[\"apiclient.%s\" % module_name] = module\n", "path": "apiclient/__init__.py"}]}