prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [WIP] fix python3.9.12 3.9.13 ci issue
  
  
  </issue>
  <code>
  [start of creme/__init__.py]
  1 __version__ = '2.4-alpha1'
  2 
  3 # App registry hooking ---------------------------------------------------------
  4 
  5 try:
  6     from django.apps.config import AppConfig
  7     from django.apps.registry import Apps
  8 except ImportError:
  9     # This error may appear with old versions of setuptools during installation
  10     import sys
  11 
  12     sys.stderr.write(
  13         'Django is not installed ; '
  14         'ignore this message if you are installing Creme.'
  15     )
  16 else:
  17     AppConfig.all_apps_ready = lambda self: None
  18 
  19     _original_populate = Apps.populate
  20 
  21     def _hooked_populate(self, installed_apps=None):
  22         if self.ready:
  23             return
  24 
  25         if getattr(self, '_all_apps_ready', False):
  26             return
  27 
  28         _original_populate(self, installed_apps)
  29 
  30         with self._lock:
  31             if getattr(self, '_all_apps_ready', False):
  32                 return
  33 
  34             for app_config in self.get_app_configs():
  35                 app_config.all_apps_ready()
  36 
  37             self._all_apps_ready = True
  38 
  39     Apps.populate = _hooked_populate
  40
  [end of creme/__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/creme/__init__.py b/creme/__init__.py
  --- a/creme/__init__.py
  +++ b/creme/__init__.py
  @@ -1,5 +1,10 @@
   __version__ = '2.4-alpha1'
   
  +
  +def get_version():
  +    return __version__
  +
  +
   # App registry hooking ---------------------------------------------------------
   
   try:
  
verification_info: {"golden_diff": "diff --git a/creme/__init__.py b/creme/__init__.py\n--- a/creme/__init__.py\n+++ b/creme/__init__.py\n@@ -1,5 +1,10 @@\n __version__ = '2.4-alpha1'\n \n+\n+def get_version():\n+    return __version__\n+\n+\n # App registry hooking ---------------------------------------------------------\n \n try:\n", "issue": "[WIP] fix python3.9.12 3.9.13 ci issue\n\n", "before_files": [{"content": "__version__ = '2.4-alpha1'\n\n# App registry hooking ---------------------------------------------------------\n\ntry:\n    from django.apps.config import AppConfig\n    from django.apps.registry import Apps\nexcept ImportError:\n    # This error may appear with old versions of setuptools during installation\n    import sys\n\n    sys.stderr.write(\n        'Django is not installed ; '\n        'ignore this message if you are installing Creme.'\n    )\nelse:\n    AppConfig.all_apps_ready = lambda self: None\n\n    _original_populate = Apps.populate\n\n    def _hooked_populate(self, installed_apps=None):\n        if self.ready:\n            return\n\n        if getattr(self, '_all_apps_ready', False):\n            return\n\n        _original_populate(self, installed_apps)\n\n        with self._lock:\n            if getattr(self, '_all_apps_ready', False):\n                return\n\n            for app_config in self.get_app_configs():\n                app_config.all_apps_ready()\n\n            self._all_apps_ready = True\n\n    Apps.populate = _hooked_populate\n", "path": "creme/__init__.py"}]}