prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py", line 23, in codepoint)
  [01:04am] <Ant> .u
  01:04AM <Sopel> AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py", line 23, in codepoint)
  01:04AM <Sopel> Ant: Sopel v. 6.1.1
  
  This is in my Debian oldstable with Python v2.7.3. :(
  
  AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py", line 23, in codepoint)
  [01:04am] <Ant> .u
  01:04AM <Sopel> AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py", line 23, in codepoint)
  01:04AM <Sopel> Ant: Sopel v. 6.1.1
  
  This is in my Debian oldstable with Python v2.7.3. :(
  
  
  </issue>
  <code>
  [start of sopel/modules/unicode_info.py]
  1 # coding=utf-8
  2 """Codepoints Module"""
  3 # Copyright 2013, Elsie Powell, embolalia.com
  4 # Copyright 2008, Sean B. Palmer, inamidst.com
  5 # Licensed under the Eiffel Forum License 2.
  6 from __future__ import unicode_literals, absolute_import, print_function, division
  7 import unicodedata
  8 import sys
  9 from sopel.module import commands, example, NOLIMIT
  10 
  11 if sys.version_info.major >= 3:
  12     unichr = chr
  13 
  14 
  15 @commands('u')
  16 @example('.u ‽', 'U+203D INTERROBANG (‽)')
  17 @example('.u 203D', 'U+203D INTERROBANG (‽)')
  18 def codepoint(bot, trigger):
  19     arg = trigger.group(2).strip()
  20     if len(arg) == 0:
  21         bot.reply('What code point do you want me to look up?')
  22         return NOLIMIT
  23     elif len(arg) > 1:
  24         if arg.startswith('U+'):
  25             arg = arg[2:]
  26         try:
  27             arg = unichr(int(arg, 16))
  28         except:
  29             bot.reply("That's not a valid code point.")
  30             return NOLIMIT
  31 
  32     # Get the hex value for the code point, and drop the 0x from the front
  33     point = str(hex(ord(u'' + arg)))[2:]
  34     # Make the hex 4 characters long with preceding 0s, and all upper case
  35     point = point.rjust(4, str('0')).upper()
  36     try:
  37         name = unicodedata.name(arg)
  38     except ValueError:
  39         return 'U+%s (No name found)' % point
  40 
  41     if not unicodedata.combining(arg):
  42         template = 'U+%s %s (%s)'
  43     else:
  44         template = 'U+%s %s (\xe2\x97\x8c%s)'
  45     bot.say(template % (point, name, arg))
  46 
  47 if __name__ == "__main__":
  48     from sopel.test_tools import run_example_tests
  49     run_example_tests(__file__)
  50
  [end of sopel/modules/unicode_info.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/sopel/modules/unicode_info.py b/sopel/modules/unicode_info.py
  --- a/sopel/modules/unicode_info.py
  +++ b/sopel/modules/unicode_info.py
  @@ -16,11 +16,14 @@
   @example('.u ‽', 'U+203D INTERROBANG (‽)')
   @example('.u 203D', 'U+203D INTERROBANG (‽)')
   def codepoint(bot, trigger):
  -    arg = trigger.group(2).strip()
  -    if len(arg) == 0:
  +    arg = trigger.group(2)
  +    if not arg:
           bot.reply('What code point do you want me to look up?')
           return NOLIMIT
  -    elif len(arg) > 1:
  +    stripped = arg.strip()
  +    if len(stripped) > 0:
  +        arg = stripped
  +    if len(arg) > 1:
           if arg.startswith('U+'):
               arg = arg[2:]
           try:
  
verification_info: {"golden_diff": "diff --git a/sopel/modules/unicode_info.py b/sopel/modules/unicode_info.py\n--- a/sopel/modules/unicode_info.py\n+++ b/sopel/modules/unicode_info.py\n@@ -16,11 +16,14 @@\n @example('.u \u203d', 'U+203D INTERROBANG (\u203d)')\n @example('.u 203D', 'U+203D INTERROBANG (\u203d)')\n def codepoint(bot, trigger):\n-    arg = trigger.group(2).strip()\n-    if len(arg) == 0:\n+    arg = trigger.group(2)\n+    if not arg:\n         bot.reply('What code point do you want me to look up?')\n         return NOLIMIT\n-    elif len(arg) > 1:\n+    stripped = arg.strip()\n+    if len(stripped) > 0:\n+        arg = stripped\n+    if len(arg) > 1:\n         if arg.startswith('U+'):\n             arg = arg[2:]\n         try:\n", "issue": "AttributeError: 'NoneType' object has no attribute 'strip' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py\", line 23, in codepoint)\n[01:04am] <Ant> .u\n01:04AM <Sopel> AttributeError: 'NoneType' object has no attribute 'strip' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py\", line 23, in codepoint)\n01:04AM <Sopel> Ant: Sopel v. 6.1.1\n\nThis is in my Debian oldstable with Python v2.7.3. :(\n\nAttributeError: 'NoneType' object has no attribute 'strip' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py\", line 23, in codepoint)\n[01:04am] <Ant> .u\n01:04AM <Sopel> AttributeError: 'NoneType' object has no attribute 'strip' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py\", line 23, in codepoint)\n01:04AM <Sopel> Ant: Sopel v. 6.1.1\n\nThis is in my Debian oldstable with Python v2.7.3. :(\n\n", "before_files": [{"content": "# coding=utf-8\n\"\"\"Codepoints Module\"\"\"\n# Copyright 2013, Elsie Powell, embolalia.com\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Licensed under the Eiffel Forum License 2.\nfrom __future__ import unicode_literals, absolute_import, print_function, division\nimport unicodedata\nimport sys\nfrom sopel.module import commands, example, NOLIMIT\n\nif sys.version_info.major >= 3:\n    unichr = chr\n\n\n@commands('u')\n@example('.u \u203d', 'U+203D INTERROBANG (\u203d)')\n@example('.u 203D', 'U+203D INTERROBANG (\u203d)')\ndef codepoint(bot, trigger):\n    arg = trigger.group(2).strip()\n    if len(arg) == 0:\n        bot.reply('What code point do you want me to look up?')\n        return NOLIMIT\n    elif len(arg) > 1:\n        if arg.startswith('U+'):\n            arg = arg[2:]\n        try:\n            arg = unichr(int(arg, 16))\n        except:\n            bot.reply(\"That's not a valid code point.\")\n            return NOLIMIT\n\n    # Get the hex value for the code point, and drop the 0x from the front\n    point = str(hex(ord(u'' + arg)))[2:]\n    # Make the hex 4 characters long with preceding 0s, and all upper case\n    point = point.rjust(4, str('0')).upper()\n    try:\n        name = unicodedata.name(arg)\n    except ValueError:\n        return 'U+%s (No name found)' % point\n\n    if not unicodedata.combining(arg):\n        template = 'U+%s %s (%s)'\n    else:\n        template = 'U+%s %s (\\xe2\\x97\\x8c%s)'\n    bot.say(template % (point, name, arg))\n\nif __name__ == \"__main__\":\n    from sopel.test_tools import run_example_tests\n    run_example_tests(__file__)\n", "path": "sopel/modules/unicode_info.py"}]}