Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/reloader: import reload from importlib (Python 3.12 compatibility) #2093

Merged
merged 1 commit into from
Aug 24, 2023

Commits on Aug 24, 2023

  1. common/reloader: import reload from importlib

    The imp module is deprecated since Python 3.4 [1]. The import was added
    even after it was deprecated in [2]. In Python 3.12 the imp module will
    be removed.
    
    Use the reload function from importlib, which is the designated
    replacement [1].
    
    With crossbario#2091 and this change, crossbar can be installed and run on
    Python 3.12 with:
    - numpy>=1.26.0b1
    - wsaccel @ git+https://github.com/methane/[email protected] (assuming
      cython>=3.0.0 is installed, tarball from pypi won't work [3])
    
    [1] https://docs.python.org/3.11/library/imp.html
    [2] crossbario@21910b0
    [3] methane/wsaccel#30
    Bastian-Krause committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    b02f5c8 View commit details
    Browse the repository at this point in the history