diff options
author | Chris Liechti <cliechti@gmx.net> | 2016-09-29 23:58:26 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2016-09-29 23:58:26 +0200 |
commit | c759d297d01138e73f8ecb02bd8c5bfccf528077 (patch) | |
tree | 3a63bb24411661cc6190a815edf021e4f6864c89 | |
parent | 5e953c32f3d4458492b5f0b69e998b89b59e9afb (diff) | |
download | pyserial-git-c759d297d01138e73f8ecb02bd8c5bfccf528077.tar.gz |
win32: fix syntax error, closes #166
-rw-r--r-- | serial/serialwin32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/serialwin32.py b/serial/serialwin32.py index c601c64..b275ea3 100644 --- a/serial/serialwin32.py +++ b/serial/serialwin32.py @@ -327,7 +327,7 @@ class Serial(SerialBase): if errorcode in (win32.ERROR_INVALID_USER_BUFFER, win32.ERROR_NOT_ENOUGH_MEMORY, win32.ERROR_OPERATION_ABORTED): return 0 - elif errorcode in (win32.ERROR_SUCCESS, win32.ERROR_IO_PENDING) + elif errorcode in (win32.ERROR_SUCCESS, win32.ERROR_IO_PENDING): # no info on true length provided by OS function in async mode return len(data) else: |