Skip to content

Replace the imp module with importlib #791

Description

@opensource-assist

The imp module is deprecated and will be removed in a future release. It should be replaced with the importlib module.
The only affected file in bpython is importcompletion.py

Here's the warning when run on my system:

/usr/local/lib/python3.9/site-packages/bpython/importcompletion.py:31: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions