mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	* Fix use of io in strings.pyx
This commit is contained in:
		
							parent
							
								
									ec874247b5
								
							
						
					
					
						commit
						2153067958
					
				|  | @ -131,7 +131,7 @@ cdef class StringStore: | ||||||
|         cdef Utf8Str* string |         cdef Utf8Str* string | ||||||
|         cdef unicode py_string |         cdef unicode py_string | ||||||
|         cdef int i |         cdef int i | ||||||
|         with io.open(loc, 'w', 'utf8') as file_: |         with io.open(loc, 'w', encoding='utf8') as file_: | ||||||
|             for i in range(1, self.size): |             for i in range(1, self.size): | ||||||
|                 string = &self.c[i] |                 string = &self.c[i] | ||||||
|                 py_string = _decode(string) |                 py_string = _decode(string) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user