summaryrefslogtreecommitdiff
path: root/Lib/fileinput.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-24 23:13:26 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-24 23:13:26 +0200
commit2480c2ed593a164fe3a4821a13d5867a0a7102ed (patch)
treee33efad894bf91e221465d7ce251531ea01d6319 /Lib/fileinput.py
parented8c9061270b619de1d603ac34502b41cc84822f (diff)
downloadcpython-git-2480c2ed593a164fe3a4821a13d5867a0a7102ed.tar.gz
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py
index 11ba82df87..de2951844a 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: