From: Brett Cannon Date: Thu, 11 Oct 2007 23:08:53 +0000 (+0000) Subject: Remove self-referential import. X-Git-Tag: v3.0a2~332 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=041683df428a42c8a01b68d79735b75d1d1dc111;p=thirdparty%2FPython%2Fcpython.git Remove self-referential import. --- diff --git a/Lib/io.py b/Lib/io.py index 710027852b59..68ee4df33811 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -34,7 +34,6 @@ import abc import sys import codecs import _fileio -import io import warnings # open() uses st_blksize whenever we can @@ -1031,7 +1030,7 @@ class TextIOWrapper(TextIOBase): if encoding is None: try: encoding = os.device_encoding(buffer.fileno()) - except (AttributeError, io.UnsupportedOperation): + except (AttributeError, UnsupportedOperation): pass if encoding is None: try: