]> granicus.if.org Git - python/commitdiff
Remove two unneeded imports in 'io'.
authorBrett Cannon <bcannon@gmail.com>
Mon, 18 Aug 2008 00:36:52 +0000 (00:36 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 18 Aug 2008 00:36:52 +0000 (00:36 +0000)
Lib/io.py
Misc/NEWS

index f90a2f8b9ec1e115fa62b9139cef5aa827b25d66..8462dd5e6a7357e003955de6c4389397aca57929 100644 (file)
--- 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
index 99414d100361d26b583f3e5ba7d6734bf795e4f9..d1390cd68712179dc270e8c7f4d27f5027bc0d0d 100644 (file)
--- 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