mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
Longer varnames for pylint.
This commit is contained in:
+4
-4
@@ -172,15 +172,15 @@ class Dataset(object):
|
||||
def xls(self):
|
||||
"""Returns XLS representation of Dataset."""
|
||||
|
||||
wb = xlwt.Workbook(encoding='utf8')
|
||||
ws = wb.add_sheet(self.title if self.title else 'Tabbed Dataset')
|
||||
workb = xlwt.Workbook(encoding='utf8')
|
||||
works = workb.add_sheet(self.title if self.title else 'Tabbed Dataset')
|
||||
|
||||
for i, row in enumerate(self._package(dicts=False)):
|
||||
for j, col in enumerate(row):
|
||||
ws.write(i, j, col)
|
||||
works.write(i, j, col)
|
||||
|
||||
stream = cStringIO.StringIO()
|
||||
wb.save(stream)
|
||||
workb.save(stream)
|
||||
return stream.getvalue()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user