summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-09-25 05:01:05 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-09-25 05:01:05 -0400
commite52b8dd329903f96206a28dc0c0b1ab6ef455166 (patch)
treeb9ec9a220a957003718794aa8db4c2d7f068a980 /tablib
parent93fb89b8b6915a277c66df458e9dd7b47a5a4be8 (diff)
downloadtablib-e52b8dd329903f96206a28dc0c0b1ab6ef455166.tar.gz
Added methods to struct for pylint.
Diffstat (limited to 'tablib')
-rw-r--r--tablib/helpers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tablib/helpers.py b/tablib/helpers.py
index 31b4558..f75c466 100644
--- a/tablib/helpers.py
+++ b/tablib/helpers.py
@@ -19,6 +19,15 @@ class Struct(object):
"""Returns dictionary representation of object."""
return self.__dict__
+ def items(self):
+ """Returns items within object."""
+ return self.__dict__.items()
+
+ def keys(self):
+ """Returns keys within object."""
+ return self.__dict__.keys()
+
+
def piped():
"""Returns piped input via stdin, else False."""