ansiwrap icon indicating copy to clipboard operation
ansiwrap copied to clipboard

module `inp` has been deprecated in favor of `importlib`

Open ankostis opened this issue 5 years ago • 2 comments

The following warning gets issued when using this library:

.venv/lib/python3.8/site-packages/ansiwrap/core.py:6
  .../.venv/lib/python3.8/site-packages/ansiwrap/core.py:6: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

ankostis avatar Jul 23 '20 09:07 ankostis

Was deprecated back in Python 3.4 and removed in 3.12. A simple try except change should suffice.

Moosems avatar Oct 19 '23 23:10 Moosems

Was deprecated back in Python 3.4 and removed in 3.12. A simple try except change should suffice.

https://github.com/jonathaneunice/ansiwrap/pull/20 includes a proposed fix.

musicinmybrain avatar Apr 30 '24 01:04 musicinmybrain