summaryrefslogtreecommitdiffstats
path: root/Lib/urlparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r--Lib/urlparse.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py
index 8cc7a97..e5de53a 100644
--- a/Lib/urlparse.py
+++ b/Lib/urlparse.py
@@ -350,10 +350,7 @@ def test():
else:
fp = open(fn)
else:
- try:
- from cStringIO import StringIO
- except ImportError:
- from StringIO import StringIO
+ from io import StringIO
fp = StringIO(test_input)
while 1:
line = fp.readline()