Added public method for pylint.

This commit is contained in:
Kenneth Reitz
2010-09-25 04:51:56 -04:00
parent 8d6a52aaf5
commit c3fa29a166
+4
View File
@@ -15,6 +15,10 @@ class Struct(object):
def __getitem__(self, key):
return getattr(self, key, None)
def dictionary(self):
"""Returns dictionary representation of object."""
return self.__dict__
def piped():
"""Returns piped input via stdin, else False."""