mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 23:10:17 +00:00
Made Struct really powerful.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ class Struct(object):
|
||||
self.__dict__.update(entries)
|
||||
|
||||
def __getitem__(self, key):
|
||||
return getattr(self, key)
|
||||
return getattr(self, key, None)
|
||||
|
||||
|
||||
def piped():
|
||||
|
||||
Reference in New Issue
Block a user