FrostyX / tracer

Tracer finds outdated running applications in your system
GNU General Public License v2.0
82 stars 24 forks source link

The imp module is deprecated in favor of importlib. #178

Closed jelly closed 3 years ago

jelly commented 3 years ago
tracer/hooks.py:20
  /home/jelle/projects/tracer/tracer/hooks.py:20: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

Is Python < 3.1 still required? As that's the version which introduced importlib otherwise some fallback code is required?

FrostyX commented 3 years ago

Hello @jelly, I still build Tracer for EPEL7 which has 2.7.5 but it seems like importlib is available there. Let me try to fix the code.

FrostyX commented 3 years ago

Modified in PR #180, what do you think @jelly?

jelly commented 3 years ago

Looks good to me!