summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-03 15:38:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-03 15:38:38 (GMT)
commit73541af85d329045c9778d571cd328e45dc0d6d4 (patch)
tree8ee6ac87b4220358d5d8ffe3a3ee034af8900d78
parent3dd9f40d6d1376c250f4a4763d4d93db9bb78e79 (diff)
downloadcpython-73541af85d329045c9778d571cd328e45dc0d6d4.zip
cpython-73541af85d329045c9778d571cd328e45dc0d6d4.tar.gz
cpython-73541af85d329045c9778d571cd328e45dc0d6d4.tar.bz2
wrap
-rw-r--r--Lib/dbhash.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/dbhash.py b/Lib/dbhash.py
index 77a878e..2179c14 100644
--- a/Lib/dbhash.py
+++ b/Lib/dbhash.py
@@ -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: