From: Brett Cannon Date: Mon, 18 Aug 2008 00:36:52 +0000 (+0000) Subject: Remove two unneeded imports in 'io'. X-Git-Tag: v2.6b3~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46225e77fa7419ca043170906164f062eb0bdbe0;p=thirdparty%2FPython%2Fcpython.git Remove two unneeded imports in 'io'. --- diff --git a/Lib/io.py b/Lib/io.py index f90a2f8b9ec1..8462dd5e6a73 100644 --- a/Lib/io.py +++ b/Lib/io.py @@ -59,10 +59,8 @@ __all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO", import os import abc -import sys import codecs import _fileio -import warnings import threading # open() uses st_blksize whenever we can diff --git a/Misc/NEWS b/Misc/NEWS index 99414d100361..d1390cd68712 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -48,6 +48,8 @@ Core and Builtins Library ------- +- Remove unneeded imports of 'sys' and 'warnings' from 'io'. + - Remove unneeded imports of 'warnings' from shelve, filecmp, and dummy_thread. - Issue #3575: Incremental decoder's decode function now takes bytearray