summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 (GMT)
committerPhilip Jenvey <pjenvey@underboss.org>2009-05-08 03:57:12 (GMT)
commita394f2dca300c17c1d70b7d6d005af457550cc8e (patch)
treec3d435abd5bddaad590e105556cafa7c6fec4ecb /Lib/string.py
parente7d149ecf0ef00902dbb603cafdf20af346a7090 (diff)
downloadcpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.zip
cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.gz
cpython-a394f2dca300c17c1d70b7d6d005af457550cc8e.tar.bz2
#4351: more appropriate DeprecationWarning stacklevels
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 8667c0e..e071a2d 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -51,7 +51,7 @@ def maketrans(frm: bytes, to: bytes) -> bytes:
"""
import warnings
warnings.warn("string.maketrans is deprecated, use bytes.maketrans instead",
- DeprecationWarning)
+ DeprecationWarning, 2)
if len(frm) != len(to):
raise ValueError("maketrans arguments must have same length")
if not (isinstance(frm, bytes) and isinstance(to, bytes)):