[Bug 1947425] Re: Use of deprecated 'imp' module
Benjamin Drung
1947425 at bugs.launchpad.net
Thu Jun 23 17:39:05 UTC 2022
Fixed:
https://github.com/canonical/apport/commit/44d1c43231d70c2da9e51f3bd96ce8151902b354
** Changed in: apport
Status: Triaged => Fix Committed
** Also affects: apport (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Code using apport/report.py will see the following warning:
+ $ python3 -Wonce -c "import apport.report"
/usr/lib/python3/dist-packages/apport/report.py:13
- /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
- import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
+ /usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
+ import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
The 'imp' module is slated for removal in Python 3.12.
https://github.com/python/cpython/blob/main/Lib/imp.py#L31
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1947425
Title:
Use of deprecated 'imp' module
Status in Apport:
Fix Committed
Status in apport package in Ubuntu:
New
Bug description:
Code using apport/report.py will see the following warning:
$ python3 -Wonce -c "import apport.report"
/usr/lib/python3/dist-packages/apport/report.py:13
/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
The 'imp' module is slated for removal in Python 3.12.
https://github.com/python/cpython/blob/main/Lib/imp.py#L31
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1947425/+subscriptions
More information about the foundations-bugs
mailing list