mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Fix writing to file
This commit is contained in:
		
							parent
							
								
									d74aa428ad
								
							
						
					
					
						commit
						c3a9f73896
					
				| 
						 | 
				
			
			@ -58,7 +58,7 @@ def create_dirs(package_path, force):
 | 
			
		|||
 | 
			
		||||
def create_file(file_path, contents):
 | 
			
		||||
    file_path.touch()
 | 
			
		||||
    file_path.write_text(contents, encoding='utf-8')
 | 
			
		||||
    file_path.open('w').write(contents, encoding='utf-8')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def generate_meta():
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user