Skip to content

Commit

Permalink
Update datatable.py
Browse files Browse the repository at this point in the history
syntax
  • Loading branch information
InterestsFantastic authored May 3, 2021
1 parent f600532 commit 284ec0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/datatable.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _set_values(self, value):
else:
self.numcols = 1
else:
raise ValueError, "Value must be list or tuple"
raise ValueError('Value must be list or tuple.')

def __setattr__(self, name, value):
if name == 'values':
Expand Down Expand Up @@ -91,4 +91,3 @@ def __call__(self):
tc.addElement(text.P(text=str(val)))
rownum += 1
return datatable

0 comments on commit 284ec0a

Please sign in to comment.