prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [WIP] fix python3.9.12 3.9.13 ci issue
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `creme/__init__.py`
  Content:
  ```
  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 FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
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"}], "after_files": [{"content": "__version__ = '2.4-alpha1'\n\n\ndef get_version():\n    return __version__\n\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"}]}