summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-18 00:36:52 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-18 00:36:52 (GMT)
commit46225e77fa7419ca043170906164f062eb0bdbe0 (patch)
tree1124469ee739e4655ed4018d6fab4c5cc3bc20ae
parent25c9d6aa00a3e3b97c23a7ebab1afb3feb526699 (diff)
downloadcpython-46225e77fa7419ca043170906164f062eb0bdbe0.zip
cpython-46225e77fa7419ca043170906164f062eb0bdbe0.tar.gz
cpython-46225e77fa7419ca043170906164f062eb0bdbe0.tar.bz2
Remove two unneeded imports in 'io'.
-rw-r--r--Lib/io.py2
-rw-r--r--Misc/NEWS2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/io.py b/Lib/io.py
index f90a2f8..8462dd5 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 99414d1..d1390cd 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