mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix duplicate import.
This commit is contained in:
		
							parent
							
								
									239f138aea
								
							
						
					
					
						commit
						48e65f5f66
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -28,7 +28,6 @@ | |||
| import time | ||||
| import sys | ||||
| from urlparse import urljoin as basejoin | ||||
| import warnings | ||||
| 
 | ||||
| __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve", | ||||
|            "urlcleanup", "quote", "quote_plus", "unquote", "unquote_plus", | ||||
|  | @ -72,8 +71,8 @@ def pathname2url(pathname): | |||
| def urlopen(url, data=None, proxies=None): | ||||
|     """Create a file-like object for the specified URL to read from.""" | ||||
|     from warnings import warnpy3k | ||||
|     warnings.warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " | ||||
|                         "favor of urllib2.urlopen()", stacklevel=2) | ||||
|     warnpy3k("urllib.urlopen() has been removed in Python 3.0 in " | ||||
|              "favor of urllib2.urlopen()", stacklevel=2) | ||||
| 
 | ||||
|     global _urlopener | ||||
|     if proxies is not None: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl