diff --git a/py_gd/py_gd.pyx b/py_gd/py_gd.pyx index dafacc8..2551ab4 100644 --- a/py_gd/py_gd.pyx +++ b/py_gd/py_gd.pyx @@ -78,11 +78,7 @@ cdef FILE* open_file(file_path) except *: IF UNAME_SYSNAME == 'Windows': cdef bytes bytes_flag = "wb".encode('utf-16') - cdef char* char_flag = bytes_flag - cdef bytes bytes_filepath = file_path.encode('utf-16') - # cdef char* char_filename = bytes_filepath - fp = _wfopen( char_filename, char_flag) ELSE: cdef bytes bytes_flag = "wb".encode('ascii')