Issue 3314. The sys module is used in an error case.

This commit is contained in:
Facundo Batista 2008-07-07 18:24:11 +00:00
parent 9f2f83338f
commit 2ac5de2a56
2 changed files with 6 additions and 1 deletions

View file

@ -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]