* Fix use of io in strings.pyx

This commit is contained in:
Matthew Honnibal 2015-10-10 15:03:12 +11:00
parent ec874247b5
commit 2153067958

View File

@ -131,7 +131,7 @@ cdef class StringStore:
cdef Utf8Str* string
cdef unicode py_string
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):
string = &self.c[i]
py_string = _decode(string)