From: Eduardo Robles Elvira Date: Tue, 22 Oct 2013 10:38:38 +0000 (+0200) Subject: ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't affect... X-Git-Tag: v2.2~81 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=7a61776310b588389106b77ce305a12fb7d0afc1;p=python-delta-tar ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't affect our code --- diff --git a/deltatar/aescrypto.py b/deltatar/aescrypto.py index 4e2f4e3..bb8cbf8 100644 --- a/deltatar/aescrypto.py +++ b/deltatar/aescrypto.py @@ -26,6 +26,13 @@ compatible with openssl command. from hashlib import md5 + +# we ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't +# affect our code +import warnings +from Crypto.pct_warnings import PowmInsecureWarning +warnings.simplefilter("ignore", PowmInsecureWarning) + from Crypto.Cipher import AES from Crypto import Random