8000 Suppress a warning due to python-future · skoranda/pysaml2@65a4751 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65a4751

Browse files
committed
Suppress a warning due to python-future
The python-future library is causing a warning about the imp module being deprecated. See PythonCharmers/python-future#246 This commit suppresses the warning.
1 parent 65b136e commit 65a4751

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/saml2/sigver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
import os
1010
import ssl
1111
import six
12+
import warnings
1213

1314
from time import mktime
1415
from binascii import hexlify
1516

16-
from future.backports.urllib.parse import urlencode
17+
with warnings.catch_warnings():
18+
warnings.simplefilter("ignore")
19+
from future.backports.urllib.parse import urlencode
1720

1821
import saml2.cryptography.asymmetric
1922
import saml2.cryptography.pki

0 commit comments

Comments
 (0)
0