Skip to content

Commit cde4c22

Browse files
committed
Ignore crypt deprication warning
I know it's going away. It's guarded by a try block. No need to keep reporting it.
1 parent 011f232 commit cde4c22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

roundup/password.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@
2626
from roundup.anypy.strings import us2s, b2s, s2b
2727
import roundup.anypy.random_ as random_
2828

29+
import warnings
30+
2931
try:
30-
import crypt
32+
with warnings.catch_warnings():
33+
warnings.filterwarnings("ignore", category=DeprecationWarning)
34+
import crypt
3135
except ImportError:
3236
crypt = None
3337

0 commit comments

Comments
 (0)