Visitar URL original
Replace the imp module with importlib · Issue #791 · bpython/bpython · GitHub
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

  1. added a commit that references this issue on Jan 29, 2020
    596d5f1
  2. sebastinas commented on Jan 29, 2020

    @sebastinas
    Contributor

    Fix available in #792.

  3. added a commit that references this issue on Feb 25, 2026
    1a674f0
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