summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.com>2010-09-25 04:45:22 -0400
committerKenneth Reitz <me@kennethreitz.com>2010-09-25 04:45:22 -0400
commit703b1da04cf3b3c883b26ad9746b16e59da377d3 (patch)
treeb36c356bcf22dceae4bc8e5f3b90e5744a924741 /tablib
parent0e6bd079cc05cc3d7312a2c6e002d1d536ab7da1 (diff)
downloadtablib-703b1da04cf3b3c883b26ad9746b16e59da377d3.tar.gz
General cleanups for pylint.
Diffstat (limited to 'tablib')
-rw-r--r--tablib/core.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/tablib/core.py b/tablib/core.py
index fae4547..1022e07 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -11,12 +11,8 @@ import simplejson as json
import xlwt
import yaml
-from helpers import Struct
-
-# __all__ = ['Dataset', 'DataBook']
-
-__name__ = 'tablib'
+__title__ = 'tablib'
__version__ = '0.7.1'
__build__ = 0x000701
__author__ = 'Kenneth Reitz'
@@ -36,12 +32,12 @@ class Dataset(object):
try:
self.headers = kwargs['headers']
- except KeyError, why:
+ except KeyError:
self.headers = None
try:
self.title = kwargs['title']
- except KeyError, why:
+ except KeyError:
self.title = None
@@ -120,10 +116,10 @@ class Dataset(object):
"""Returns the width of the Dataset."""
try:
return len(self._data[0])
- except IndexError, why:
+ except IndexError:
try:
return len(self.headers)
- except TypeError, e:
+ except TypeError:
return 0
@property