p4lang / ptf

Packet Test Framework
Apache License 2.0
144 stars 99 forks source link

Fix DeprecationWarning and replace `imp` with `importlib` #187

Closed antoninbas closed 1 year ago

antoninbas commented 1 year ago
abasYLVDQ:ptf abas$ ptf --version
/usr/local/bin/ptf:19: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
  import imp
ptf 0.1

I haven't checked the potential impact on the list of supported Python versions.

jafingerhut commented 1 year ago

Should be fixed with the merging of this PR: https://github.com/p4lang/ptf/pull/189