Skip to content

Replace the imp module with importlib #791

@opensource-assist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions