summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-09-25 04:51:56 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-09-25 04:51:56 -0400
commitc3fa29a166bc91c202eee6faa432283b14fc46f3 (patch)
tree40f75337b050e3fe386391da39e1f19d1988c3fd /tablib
parent8d6a52aaf5d228fa48d55f0133ea52e93537683e (diff)
downloadtablib-c3fa29a166bc91c202eee6faa432283b14fc46f3.tar.gz
Added public method for pylint.
Diffstat (limited to 'tablib')
-rw-r--r--tablib/helpers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tablib/helpers.py b/tablib/helpers.py
index a3b94b3..31b4558 100644
--- a/tablib/helpers.py
+++ b/tablib/helpers.py
@@ -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."""