diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-10-06 13:42:26 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-10-06 13:42:26 -0400 |
| commit | a54949bc08e7323bb7b276d8b8acd7ab0ec5a397 (patch) | |
| tree | 41854dc9a0e0aa1073a2516110b657525ce748e7 /tablib/formats/_xls.py | |
| parent | ed686c23914d42dec69fcc9e8e8fc52a727095eb (diff) | |
| download | tablib-a54949bc08e7323bb7b276d8b8acd7ab0ec5a397.tar.gz | |
Removed external dependencies, but utilize them if
available.
Diffstat (limited to 'tablib/formats/_xls.py')
| -rw-r--r-- | tablib/formats/_xls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tablib/formats/_xls.py b/tablib/formats/_xls.py index f7be4a4..97a9580 100644 --- a/tablib/formats/_xls.py +++ b/tablib/formats/_xls.py @@ -3,9 +3,13 @@ """ Tablib - XLS Support. """ -import xlwt import cStringIO +try: + import xlwt +except ImportError: + import tablib.packages.xlwt as xlwt + title = 'xls' extentions = ('xls',) |
