From 9789e84a6078067257ccf5e92f507ac704cb911b Mon Sep 17 00:00:00 2001
From: Jameson Graef Rollins <jrollins@finestructure.net>
Date: Thu, 30 Jan 2020 09:13:41 -0800
Subject: [PATCH] struct: set default=None in Struct.get method

as per expected from dict method.
---
 gwinc/struct.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gwinc/struct.py b/gwinc/struct.py
index 25c82508..26594597 100644
--- a/gwinc/struct.py
+++ b/gwinc/struct.py
@@ -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.
 
         """
-- 
GitLab