prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Minor documentation correction:  correct id3.org url
  https://github.com/beetbox/beets/blob/master/docs/faq.rst#L303
  refers to:
  http://www.id3.org/id3v2.4.0-structure
  as a reference url for a copy of the ID3v2.4 standard documentation, but this returns a "Not found" error. I've found 2 possibilities for the replacement:
  https://id3.org/id3v2.4.0-structure
  (with adverts) or
  https://github.com/id3/ID3v2.4/raw/master/id3v2.40-structure.txt
  (without adverts)
  
  
  </issue>
  <code>
  [start of docs/conf.py]
  1 # -*- coding: utf-8 -*-
  2 
  3 from __future__ import division, absolute_import, print_function
  4 
  5 AUTHOR = u'Adrian Sampson'
  6 
  7 # General configuration
  8 
  9 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.extlinks']
  10 
  11 exclude_patterns = ['_build']
  12 source_suffix = '.rst'
  13 master_doc = 'index'
  14 
  15 project = u'beets'
  16 copyright = u'2016, Adrian Sampson'
  17 
  18 version = '1.5'
  19 release = '1.5.0'
  20 
  21 pygments_style = 'sphinx'
  22 
  23 # External links to the bug tracker and other sites.
  24 extlinks = {
  25     'bug': ('https://github.com/beetbox/beets/issues/%s', '#'),
  26     'user': ('https://github.com/%s', ''),
  27     'pypi': ('https://pypi.org/project/%s/', ''),
  28     'stdlib': ('https://docs.python.org/3/library/%s.html', ''),
  29 }
  30 
  31 # Options for HTML output
  32 htmlhelp_basename = 'beetsdoc'
  33 
  34 # Options for LaTeX output
  35 latex_documents = [
  36     ('index', 'beets.tex', u'beets Documentation',
  37      AUTHOR, 'manual'),
  38 ]
  39 
  40 # Options for manual page output
  41 man_pages = [
  42     ('reference/cli', 'beet', u'music tagger and library organizer',
  43      [AUTHOR], 1),
  44     ('reference/config', 'beetsconfig', u'beets configuration file',
  45      [AUTHOR], 5),
  46 ]
  47
  [end of docs/conf.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/docs/conf.py b/docs/conf.py
  --- a/docs/conf.py
  +++ b/docs/conf.py
  @@ -28,6 +28,13 @@
       'stdlib': ('https://docs.python.org/3/library/%s.html', ''),
   }
   
  +linkcheck_ignore = [
  +    r'https://github.com/beetbox/beets/issues/',
  +    r'https://github.com/\w+$',  # ignore user pages
  +    r'.*localhost.*',
  +    r'https://www.musixmatch.com/',  # blocks requests
  +]
  +
   # Options for HTML output
   htmlhelp_basename = 'beetsdoc'
  
verification_info: {"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -28,6 +28,13 @@\n     'stdlib': ('https://docs.python.org/3/library/%s.html', ''),\n }\n \n+linkcheck_ignore = [\n+    r'https://github.com/beetbox/beets/issues/',\n+    r'https://github.com/\\w+$',  # ignore user pages\n+    r'.*localhost.*',\n+    r'https://www.musixmatch.com/',  # blocks requests\n+]\n+\n # Options for HTML output\n htmlhelp_basename = 'beetsdoc'\n", "issue": "Minor documentation correction:  correct id3.org url\nhttps://github.com/beetbox/beets/blob/master/docs/faq.rst#L303\r\nrefers to:\r\nhttp://www.id3.org/id3v2.4.0-structure\r\nas a reference url for a copy of the ID3v2.4 standard documentation, but this returns a \"Not found\" error. I've found 2 possibilities for the replacement:\r\nhttps://id3.org/id3v2.4.0-structure\r\n(with adverts) or\r\nhttps://github.com/id3/ID3v2.4/raw/master/id3v2.40-structure.txt\r\n(without adverts)\r\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nfrom __future__ import division, absolute_import, print_function\n\nAUTHOR = u'Adrian Sampson'\n\n# General configuration\n\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.extlinks']\n\nexclude_patterns = ['_build']\nsource_suffix = '.rst'\nmaster_doc = 'index'\n\nproject = u'beets'\ncopyright = u'2016, Adrian Sampson'\n\nversion = '1.5'\nrelease = '1.5.0'\n\npygments_style = 'sphinx'\n\n# External links to the bug tracker and other sites.\nextlinks = {\n    'bug': ('https://github.com/beetbox/beets/issues/%s', '#'),\n    'user': ('https://github.com/%s', ''),\n    'pypi': ('https://pypi.org/project/%s/', ''),\n    'stdlib': ('https://docs.python.org/3/library/%s.html', ''),\n}\n\n# Options for HTML output\nhtmlhelp_basename = 'beetsdoc'\n\n# Options for LaTeX output\nlatex_documents = [\n    ('index', 'beets.tex', u'beets Documentation',\n     AUTHOR, 'manual'),\n]\n\n# Options for manual page output\nman_pages = [\n    ('reference/cli', 'beet', u'music tagger and library organizer',\n     [AUTHOR], 1),\n    ('reference/config', 'beetsconfig', u'beets configuration file',\n     [AUTHOR], 5),\n]\n", "path": "docs/conf.py"}]}