mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	Merge 5b540a0451 into a1682c70d2
				
					
				
			This commit is contained in:
		
						commit
						2db52f1e01
					
				| 
						 | 
					@ -261,7 +261,7 @@ def load_path(filename):
 | 
				
			||||||
    "Load a font file, searching along the Python path."
 | 
					    "Load a font file, searching along the Python path."
 | 
				
			||||||
    for dir in sys.path:
 | 
					    for dir in sys.path:
 | 
				
			||||||
        if isDirectory(dir):
 | 
					        if isDirectory(dir):
 | 
				
			||||||
            if not isinstance(filename, "utf-8"):
 | 
					            if isinstance(filename, str):
 | 
				
			||||||
                if bytes is str:
 | 
					                if bytes is str:
 | 
				
			||||||
                    filename = filename.encode("utf-8")
 | 
					                    filename = filename.encode("utf-8")
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user