Kaydet (Commit) 48e65f5f authored tarafından Georg Brandl's avatar Georg Brandl

Fix duplicate import.

üst 239f138a
...@@ -28,7 +28,6 @@ import os ...@@ -28,7 +28,6 @@ import os
import time import time
import sys import sys
from urlparse import urljoin as basejoin from urlparse import urljoin as basejoin
import warnings
__all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve",
"urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus", "urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus",
...@@ -72,7 +71,7 @@ _urlopener = None ...@@ -72,7 +71,7 @@ _urlopener = None
def urlopen(url, data=None, proxies=None): def urlopen(url, data=None, proxies=None):
"""Create a file-like object for the specified URL to read from.""" """Create a file-like object for the specified URL to read from."""
from warnings import warnpy3k from warnings import warnpy3k
warnings.warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " warnpy3k("urllib.urlopen() has been removed in Python 3.0 in "
"favor of urllib2.urlopen()", stacklevel=2) "favor of urllib2.urlopen()", stacklevel=2)
global _urlopener global _urlopener
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment