summaryrefslogtreecommitdiffstats
path: root/Lib/urllib
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-07-07 18:24:11 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-07-07 18:24:11 (GMT)
commit2ac5de2a56f74026d3f82e014e564b884d06c8f2 (patch)
tree26bb79f8cf89b2fe182c30297b8ed4117d781899 /Lib/urllib
parent9f2f83338f54a769497fd122e86170aa58cf5603 (diff)
downloadcpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.zip
cpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.tar.gz
cpython-2ac5de2a56f74026d3f82e014e564b884d06c8f2.tar.bz2
Issue 3314. The sys module is used in an error case.
Diffstat (limited to 'Lib/urllib')
-rw-r--r--Lib/urllib/parse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index 8edc963..fe02db5 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -4,6 +4,8 @@ See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding,
UC Irvine, June 1995.
"""
+import sys
+
__all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
"urlsplit", "urlunsplit"]
@@ -599,7 +601,6 @@ test_input = """
"""
def test():
- import sys
base = ''
if sys.argv[1:]:
fn = sys.argv[1]