diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-24 21:13:26 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-24 21:13:26 (GMT) |
commit | 2480c2ed593a164fe3a4821a13d5867a0a7102ed (patch) | |
tree | e33efad894bf91e221465d7ce251531ea01d6319 /Lib/fileinput.py | |
parent | ed8c9061270b619de1d603ac34502b41cc84822f (diff) | |
download | cpython-2480c2ed593a164fe3a4821a13d5867a0a7102ed.zip cpython-2480c2ed593a164fe3a4821a13d5867a0a7102ed.tar.gz cpython-2480c2ed593a164fe3a4821a13d5867a0a7102ed.tar.bz2 |
Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.
Changed deprecation message in the fileinput module.
Diffstat (limited to 'Lib/fileinput.py')
-rw-r--r-- | Lib/fileinput.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py index 11ba82d..de29518 100644 --- a/Lib/fileinput.py +++ b/Lib/fileinput.py @@ -224,7 +224,7 @@ class FileInput: "'r', 'rU', 'U' and 'rb'") if 'U' in mode: import warnings - warnings.warn("Use of 'U' mode is deprecated", + warnings.warn("'U' mode is deprecated", DeprecationWarning, 2) self._mode = mode if openhook: |