Skip to content
Snippets Groups Projects
Commit 9789e84a authored by Jameson Graef Rollins's avatar Jameson Graef Rollins
Browse files

struct: set default=None in Struct.get method

as per expected from dict method.
parent 95c59e8d
No related branches found
No related tags found
1 merge request!63Struct improvements
......@@ -96,7 +96,7 @@ class Struct(object):
else:
return self.__dict__[key]
def get(self, key, default):
def get(self, key, default=None):
"""Get a (possibly nested) value from the struct, or default.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment