diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-09-25 05:01:05 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-09-25 05:01:05 -0400 |
| commit | e52b8dd329903f96206a28dc0c0b1ab6ef455166 (patch) | |
| tree | b9ec9a220a957003718794aa8db4c2d7f068a980 /tablib | |
| parent | 93fb89b8b6915a277c66df458e9dd7b47a5a4be8 (diff) | |
| download | tablib-e52b8dd329903f96206a28dc0c0b1ab6ef455166.tar.gz | |
Added methods to struct for pylint.
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/helpers.py | 9 |
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.""" |
