mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue 3314. The sys module is used in an error case.
This commit is contained in:
parent
9f2f83338f
commit
2ac5de2a56
2 changed files with 6 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue