Skip to content

DeprecationWarning on usage of imp in loader.py #675

Closed
@milliams

Description

@milliams

When running my test suite which uses invoke (via fabric) I see:

======================= warnings summary ========================
venv/lib64/python3.7/site-packages/invoke/loader.py:3
  venv/lib64/python3.7/site-packages/invoke/loader.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

-- Docs: https://docs.pytest.org/en/latest/warnings.html
========== 6 passed, 1 warnings in 1651.00s (0:27:30) ===========

The used parts of the imp module have been deprecated since Python 3.3 and the replacement importlib has been available since Python 3.1.

Metadata

Metadata

Assignees

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