diff --git a/Lib/dbhash.py b/Lib/dbhash.py index 601d69b6a22..a5d5375ba94 100644 --- a/Lib/dbhash.py +++ b/Lib/dbhash.py @@ -2,7 +2,7 @@ import sys import warnings -warnings.warnpy3k("in 3.x, the dbhash module has been removed", stackless=2) +warnings.warnpy3k("in 3.x, the dbhash module has been removed", stacklevel=2) try: import bsddb except ImportError: