From 0b66c721f6fd63a560a60d131324644ec5da21f6 Mon Sep 17 00:00:00 2001 From: Andrew Haigh Date: Thu, 31 Aug 2017 15:48:14 +1000 Subject: [PATCH] Fix Python 2 string handling in osc_types.get_string --- pythonosc/parsing/osc_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonosc/parsing/osc_types.py b/pythonosc/parsing/osc_types.py index e15eb23..09f5a04 100644 --- a/pythonosc/parsing/osc_types.py +++ b/pythonosc/parsing/osc_types.py @@ -61,7 +61,7 @@ def get_string(dgram, start_index): """ offset = 0 try: - while dgram[start_index + offset] != 0: + while dgram[start_index + offset] != '\x00': offset += 1 if offset == 0: raise ParseError( -- GitLab