From 7a61776310b588389106b77ce305a12fb7d0afc1 Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Tue, 22 Oct 2013 12:38:38 +0200 Subject: [PATCH] ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't affect our code --- deltatar/aescrypto.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) 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 -- 1.7.1