[Python-checkins] r79693 - python/trunk/Lib/dbhash.py

benjamin.peterson python-checkins at python.org
Sat Apr 3 17:38:39 CEST 2010


Author: benjamin.peterson
Date: Sat Apr  3 17:38:38 2010
New Revision: 79693

Log:
wrap

Modified:
   python/trunk/Lib/dbhash.py

Modified: python/trunk/Lib/dbhash.py
==============================================================================
--- python/trunk/Lib/dbhash.py	(original)
+++ python/trunk/Lib/dbhash.py	Sat Apr  3 17:38:38 2010
@@ -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:


More information about the Python-checkins mailing list