Skip to content

python3 warnings in importcompletion #296

@ikanobori

Description

@ikanobori

We need to write some Python3-specific import completion code.

#!python

prompt$ # Issue with python3: As soon as I press anything at the ">>>" prompt, I get hundreds of the following two warnings repeated.
prompt$ bpython3 -i /path/to/bpython-PythonStartup.py
>>> <cr>
/home/user/.local/lib/python3.3/site-packages/bpython/importcompletion.py:122:
  DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead
  if not any(name.endswith(suffix[0]) for suffix in imp.get_suffixes()):

/home/user/.local/lib/python3.3/site-packages/bpython/importcompletion.py:130:
  DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead
  for suffix in imp.get_suffixes():

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions