From 49e724c0c26f5a5a5d18c6dc6703f4a507a55dc8 Mon Sep 17 00:00:00 2001 From: skjerns <14980558+skjerns@users.noreply.github.com> Date: Sat, 26 Dec 2020 21:06:27 +0100 Subject: [PATCH] typo --- pyedflib/_extensions/_pyedflib.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyedflib/_extensions/_pyedflib.pyx b/pyedflib/_extensions/_pyedflib.pyx index ecb0410..9c81a04 100644 --- a/pyedflib/_extensions/_pyedflib.pyx +++ b/pyedflib/_extensions/_pyedflib.pyx @@ -534,9 +534,9 @@ def open_file_writeonly(path, filetype, number_of_signals): # Check if we're on Windows and the file path contains Unicode. # If so, use workaround to create file: In Python, create the file, # then look up and pass the short file name to the C library - if using_unicode: + if not using_unicode: warnings.warn('Attempting to write Unicode file {} on Windows. ' \ - 'Consider chaning your locale to UTF8.'.format(path)) + 'Consider changing your locale to UTF8.'.format(path)) with open(path, 'wb'): pass path = get_short_path_name(path)