Skip to content

Issue #208 Fix "invalid escape sequence" warnings before they become errors #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ask-sdk-core/ask_sdk_core/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def __deserialize(self, payload, obj_type):
# Get object type for each item in the list
# Deserialize each item using the object type.
sub_obj_type = re.match(
'list\[(.*)\]', obj_type)
'list\\[(.*)\\]', obj_type)
if sub_obj_type is None:
return []
sub_obj_types = sub_obj_type.group(1)
Expand All @@ -209,7 +209,7 @@ def __deserialize(self, payload, obj_type):
# Get object type for each k,v pair in the dict
# Deserialize each value using the object type of v.
sub_obj_type = re.match(
'dict\(([^,]*), (.*)\)', obj_type)
'dict\\(([^,]*), (.*)\\)', obj_type)
if sub_obj_type is None:
return {}
sub_obj_types = sub_obj_type.group(2)
Expand Down