Skip to content

Commit 8d6c93c

Browse files
authored
Merge pull request #7 from moilanen/master
Order of operation issue with _unmarshal_json_object
2 parents 69c0ff3 + 3afa81c commit 8d6c93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polygon/rest/models/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _unmarshal_json_object(self, input_json):
4646
model = models.name_to_class[attribute_type]()
4747
value = model.unmarshal_json(input_json[key])
4848
else:
49-
attribute_name = key + "_" if keyword.iskeyword(key) else ""
49+
attribute_name = key + ('_' if keyword.iskeyword(key) else '')
5050

5151
self.__setattr__(attribute_name, value)
5252
return self

0 commit comments

Comments
 (0)