Made Struct really powerful.

This commit is contained in:
Kenneth Reitz
2010-09-13 20:03:46 -04:00
parent b2cd061773
commit a0cb44cc43
+1 -1
View File
@@ -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():