a fix and new tests for parse_data

This commit is contained in:
Krzysztof Jagiello
2011-06-06 16:36:53 +02:00
committed by Andrew Williams
parent 762f1dd0d1
commit 9ac1fd1d8d
2 changed files with 24 additions and 5 deletions

View File

@@ -214,7 +214,7 @@ class TS3Proto():
if len(chunk) > 1:
if len(chunk) > 2:
# value can contain '=' which may confuse our parser
chunk = [v[0], '='.join(v[1:])]
chunk = [chunk[0], '='.join(chunk[1:])]
key, value = chunk
parsed_data[key] = TS3Proto._unescape_str(value)