]> granicus.if.org Git - python/commitdiff
wrap
authorBenjamin Peterson <benjamin@python.org>
Sat, 3 Apr 2010 15:38:38 +0000 (15:38 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 3 Apr 2010 15:38:38 +0000 (15:38 +0000)
Lib/dbhash.py

index 77a878e964b8d522af9f75a643e4de99b63fca7d..2179c14b3571bd79e9971fc06c8eedd60427084a 100644 (file)
@@ -1,9 +1,9 @@
 """Provide a (g)dbm-compatible interface to bsddb.hashopen."""
 
 import sys
-if sys.py3kwarning:
-    import warnings
-    warnings.warnpy3k("in 3.x, the dbhash module has been removed", DeprecationWarning, 2)
+import warnings
+warnings.warnpy3k("in 3.x, the dbhash module has been removed",
+                  DeprecationWarning, 2)
 try:
     import bsddb
 except ImportError: