prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Permanent URL (Heroku "No such app" error)
  I noticed that https://warehouse.python.org/ produces a `Heroku | No such app` error at the moment. Is this intentional? Are we permanently at https://pypi.io/ now?
  
  If so, we should probably update the URL in a few places: https://github.com/pypa/warehouse/search?utf8=%E2%9C%93&q=%22warehouse.python.org%22
  
  
  </issue>
  <code>
  [start of warehouse/__about__.py]
  1 # Licensed under the Apache License, Version 2.0 (the "License");
  2 # you may not use this file except in compliance with the License.
  3 # You may obtain a copy of the License at
  4 #
  5 # http://www.apache.org/licenses/LICENSE-2.0
  6 #
  7 # Unless required by applicable law or agreed to in writing, software
  8 # distributed under the License is distributed on an "AS IS" BASIS,
  9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10 # See the License for the specific language governing permissions and
  11 # limitations under the License.
  12 
  13 import os.path
  14 
  15 __all__ = [
  16     "__title__", "__summary__", "__uri__", "__version__", "__commit__",
  17     "__author__", "__email__", "__license__", "__copyright__",
  18 ]
  19 
  20 
  21 try:
  22     base_dir = os.path.dirname(os.path.abspath(__file__))
  23 except NameError:
  24     base_dir = None
  25 
  26 
  27 __title__ = "warehouse"
  28 __summary__ = "Next Generation Python Package Repository"
  29 __uri__ = "https://warehouse.python.org/"
  30 
  31 __version__ = "15.0.dev0"
  32 
  33 if base_dir is not None and os.path.exists(os.path.join(base_dir, ".commit")):
  34     with open(os.path.join(base_dir, ".commit")) as fp:
  35         __commit__ = fp.read().strip()
  36 else:
  37     __commit__ = None
  38 
  39 __author__ = "The Python Packaging Authority"
  40 __email__ = "donald@stufft.io"
  41 
  42 __license__ = "Apache License, Version 2.0"
  43 __copyright__ = "2015 %s" % __author__
  44
  [end of warehouse/__about__.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/warehouse/__about__.py b/warehouse/__about__.py
  --- a/warehouse/__about__.py
  +++ b/warehouse/__about__.py
  @@ -26,7 +26,7 @@
   
   __title__ = "warehouse"
   __summary__ = "Next Generation Python Package Repository"
  -__uri__ = "https://warehouse.python.org/"
  +__uri__ = "https://pypi.io/"
   
   __version__ = "15.0.dev0"
  
verification_info: {"golden_diff": "diff --git a/warehouse/__about__.py b/warehouse/__about__.py\n--- a/warehouse/__about__.py\n+++ b/warehouse/__about__.py\n@@ -26,7 +26,7 @@\n \n __title__ = \"warehouse\"\n __summary__ = \"Next Generation Python Package Repository\"\n-__uri__ = \"https://warehouse.python.org/\"\n+__uri__ = \"https://pypi.io/\"\n \n __version__ = \"15.0.dev0\"\n", "issue": "Permanent URL (Heroku \"No such app\" error)\nI noticed that https://warehouse.python.org/ produces a `Heroku | No such app` error at the moment. Is this intentional? Are we permanently at https://pypi.io/ now?\n\nIf so, we should probably update the URL in a few places: https://github.com/pypa/warehouse/search?utf8=%E2%9C%93&q=%22warehouse.python.org%22\n\n", "before_files": [{"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport os.path\n\n__all__ = [\n    \"__title__\", \"__summary__\", \"__uri__\", \"__version__\", \"__commit__\",\n    \"__author__\", \"__email__\", \"__license__\", \"__copyright__\",\n]\n\n\ntry:\n    base_dir = os.path.dirname(os.path.abspath(__file__))\nexcept NameError:\n    base_dir = None\n\n\n__title__ = \"warehouse\"\n__summary__ = \"Next Generation Python Package Repository\"\n__uri__ = \"https://warehouse.python.org/\"\n\n__version__ = \"15.0.dev0\"\n\nif base_dir is not None and os.path.exists(os.path.join(base_dir, \".commit\")):\n    with open(os.path.join(base_dir, \".commit\")) as fp:\n        __commit__ = fp.read().strip()\nelse:\n    __commit__ = None\n\n__author__ = \"The Python Packaging Authority\"\n__email__ = \"donald@stufft.io\"\n\n__license__ = \"Apache License, Version 2.0\"\n__copyright__ = \"2015 %s\" % __author__\n", "path": "warehouse/__about__.py"}]}