diff options
Diffstat (limited to 'Lib/string.py')
-rw-r--r-- | Lib/string.py | 2 |
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)): |