mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Treat file://localhost/ as local too (same as file:/ and file:///).
Fixes #607789, bugfix candidate.
This commit is contained in:
		
							parent
							
								
									10c6eda070
								
							
						
					
					
						commit
						3ae2dc5e5e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -404,7 +404,7 @@ def open_gopher(self, url): | ||||||
| 
 | 
 | ||||||
|     def open_file(self, url): |     def open_file(self, url): | ||||||
|         """Use local file or FTP depending on form of URL.""" |         """Use local file or FTP depending on form of URL.""" | ||||||
|         if url[:2] == '//' and url[2:3] != '/': |         if url[:2] == '//' and url[2:3] != '/' and url[2:12] != 'localhost/': | ||||||
|             return self.open_ftp(url) |             return self.open_ftp(url) | ||||||
|         else: |         else: | ||||||
|             return self.open_local_file(url) |             return self.open_local_file(url) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen