BOM-622 Type errors in content matching.
This commit is contained in:
@@ -40,7 +40,7 @@ def load_serialized_data(response, key):
|
||||
Extract and deserialize serialized data from the response.
|
||||
"""
|
||||
pattern = re.compile(u'{key}: (?P<data>\\[.*\\])'.format(key=key))
|
||||
match = pattern.search(response.content)
|
||||
match = pattern.search(response.content.decode('utf-8'))
|
||||
serialized = match.group('data')
|
||||
|
||||
return json.loads(serialized)
|
||||
|
||||
Reference in New Issue
Block a user