diff roundup/password.py @ 6717:469ad03e6cb8

Ignore crypt deprication warning I know it's going away. It's guarded by a try block. No need to keep reporting it.
author John Rouillard <rouilj@ieee.org>
date Wed, 22 Jun 2022 15:19:35 -0400
parents 120b0bb05b6e
children aa629aebac41
line wrap: on
line diff
--- a/roundup/password.py	Wed Jun 22 11:51:23 2022 -0400
+++ b/roundup/password.py	Wed Jun 22 15:19:35 2022 -0400
@@ -26,8 +26,12 @@
 from roundup.anypy.strings import us2s, b2s, s2b
 import roundup.anypy.random_ as random_
 
+import warnings
+
 try:
-    import crypt
+    with warnings.catch_warnings():
+        warnings.filterwarnings("ignore", category=DeprecationWarning)
+        import crypt
 except ImportError:
     crypt = None
 

Roundup Issue Tracker: http://roundup-tracker.org/