mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	When a port is specified in an ftp:// URL, must convert it to a number!
This commit is contained in:
		
							parent
							
								
									240ddc8a68
								
							
						
					
					
						commit
						c0f29c2d31
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -323,6 +323,8 @@ def open_ftp(self, url): | |||
| 		if not port: | ||||
| 			import ftplib | ||||
| 			port = ftplib.FTP_PORT | ||||
| 		else: | ||||
| 			port = int(port) | ||||
| 		path, attrs = splitattr(path) | ||||
| 		dirs = string.splitfields(path, '/') | ||||
| 		dirs, file = dirs[:-1], dirs[-1] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum