summaryrefslogtreecommitdiffstats
path: root/Lib/_pyio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_pyio.py')
-rw-r--r--Lib/_pyio.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/_pyio.py b/Lib/_pyio.py
index b875103..a870de5 100644
--- a/Lib/_pyio.py
+++ b/Lib/_pyio.py
@@ -2056,8 +2056,7 @@ class TextIOWrapper(TextIOBase):
raise ValueError("invalid encoding: %r" % encoding)
if not codecs.lookup(encoding)._is_text_encoding:
- msg = ("%r is not a text encoding; "
- "use codecs.open() to handle arbitrary codecs")
+ msg = "%r is not a text encoding"
raise LookupError(msg % encoding)
if errors is None: