Skip to content

Commit

Permalink
services: Use cls for factory method instead of Service
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Jul 28, 2016
1 parent c18b3e0 commit c96d0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soa/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def from_json_dict(cls, js_dict):
props[jprop['name']] = jprop['value']
except KeyError:
continue
return Service(properties=props, **attrs)
return cls(properties=props, **attrs)

@classmethod
def from_json(cls, payload):
Expand Down

0 comments on commit c96d0b6

Please sign in to comment.