prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Change __version__ to match pep 440
  Specifically, when a branch is specified, it should use a plus sign instead of minus
  
  https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
  
  https://github.com/wright-group/WrightTools/blob/490a4a3d6fb6f016e7033d661b553b72c2d86fcb/WrightTools/__version__.py#L33
  
  </issue>
  <code>
  [start of WrightTools/__version__.py]
  1 """Define WrightTools version."""
  2 
  3 
  4 # --- import --------------------------------------------------------------------------------------
  5 
  6 
  7 import os
  8 
  9 
  10 # ---- define -------------------------------------------------------------------------------------
  11 
  12 
  13 here = os.path.abspath(os.path.dirname(__file__))
  14 
  15 
  16 __all__ = ['__version__', '__branch__']
  17 
  18 
  19 # --- version -------------------------------------------------------------------------------------
  20 
  21 
  22 # read from VERSION file
  23 with open(os.path.join(os.path.dirname(here), 'VERSION')) as f:
  24     __version__ = f.read().strip()
  25 
  26 
  27 # add git branch, if appropriate
  28 p = os.path.join(os.path.dirname(here), '.git', 'HEAD')
  29 if os.path.isfile(p):
  30     with open(p) as f:
  31         __branch__ = f.readline().rstrip().split(r'/')[-1]
  32     if __branch__ != 'master':
  33         __version__ += '-' + __branch__
  34 else:
  35     __branch__ = None
  36
  [end of WrightTools/__version__.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/WrightTools/__version__.py b/WrightTools/__version__.py
  --- a/WrightTools/__version__.py
  +++ b/WrightTools/__version__.py
  @@ -30,6 +30,6 @@
       with open(p) as f:
           __branch__ = f.readline().rstrip().split(r'/')[-1]
       if __branch__ != 'master':
  -        __version__ += '-' + __branch__
  +        __version__ += '+' + __branch__
   else:
       __branch__ = None
  
verification_info: {"golden_diff": "diff --git a/WrightTools/__version__.py b/WrightTools/__version__.py\n--- a/WrightTools/__version__.py\n+++ b/WrightTools/__version__.py\n@@ -30,6 +30,6 @@\n     with open(p) as f:\n         __branch__ = f.readline().rstrip().split(r'/')[-1]\n     if __branch__ != 'master':\n-        __version__ += '-' + __branch__\n+        __version__ += '+' + __branch__\n else:\n     __branch__ = None\n", "issue": "Change __version__ to match pep 440\nSpecifically, when a branch is specified, it should use a plus sign instead of minus\r\n\r\nhttps://www.python.org/dev/peps/pep-0440/#local-version-identifiers\r\n\r\nhttps://github.com/wright-group/WrightTools/blob/490a4a3d6fb6f016e7033d661b553b72c2d86fcb/WrightTools/__version__.py#L33\n", "before_files": [{"content": "\"\"\"Define WrightTools version.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\n\n# ---- define -------------------------------------------------------------------------------------\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\n__all__ = ['__version__', '__branch__']\n\n\n# --- version -------------------------------------------------------------------------------------\n\n\n# read from VERSION file\nwith open(os.path.join(os.path.dirname(here), 'VERSION')) as f:\n    __version__ = f.read().strip()\n\n\n# add git branch, if appropriate\np = os.path.join(os.path.dirname(here), '.git', 'HEAD')\nif os.path.isfile(p):\n    with open(p) as f:\n        __branch__ = f.readline().rstrip().split(r'/')[-1]\n    if __branch__ != 'master':\n        __version__ += '-' + __branch__\nelse:\n    __branch__ = None\n", "path": "WrightTools/__version__.py"}]}