ошибка в localize_path
This commit is contained in:
		
							parent
							
								
									af498c04a1
								
							
						
					
					
						commit
						f9840c39c0
					
				@ -6,7 +6,7 @@ import chardet
 | 
				
			|||||||
def localize_path(path):
 | 
					def localize_path(path):
 | 
				
			||||||
    path = path.decode(chardet.detect(path)['encoding'])
 | 
					    path = path.decode(chardet.detect(path)['encoding'])
 | 
				
			||||||
    if not sys.platform.startswith('win'):
 | 
					    if not sys.platform.startswith('win'):
 | 
				
			||||||
        path = path.encode(sys.getfilesystemencoding())
 | 
					        path = path.encode(True and sys.getfilesystemencoding() or 'utf-8')
 | 
				
			||||||
    return path
 | 
					    return path
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def can_bind(host, port):
 | 
					def can_bind(host, port):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user