[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix python3 deprecation warning

From: Gabriel Ganne
Subject: Fix python3 deprecation warning
Date: Sat, 13 Jul 2019 08:47:07 +0200


When byte-compilig python code, automake uses a small python script wrapped
around the py_compile module. This code makes use of the imp module which
has been deprecated since 3.4.
I'm working on the Debian stable release which provides python3.7, and in
practice, this means that each time I install python code and it is
byte-compiled I see the following warning: "DeprecationWarning: the imp
module is deprecated in favour of importlib; see the module's documentation
for alternative uses"

The attached patch proposes to replace the imp functions with the new ones
from importlib.

Best regards,

Gabriel Ganne


**Attention: Confidential**

This email message is for the sole use of 
the intended recipient(s) and may contain confidential and/or privileged 
Any unauthorized review, use, disclosure or distribution is 
If you are not the intended recipient, please contact me by 
reply email and destroy all copies of the original message.

Attachment: 0001-python3-fix-deprecation-warning.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]