Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -24,6 +24,7 @@ __all__ = ['FormattersLoader', 'FormatterLoadError']
|
|||
class FormatterLoadError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class FormattersLoader(object):
|
||||
BUILTINS = ['htmltable', 'multiline', 'simple', 'table', 'csv', 'webkit', 'json']
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class TableFormatter(IFormatter):
|
|||
table = PrettyTable(list(column_headers))
|
||||
for column_header in column_headers:
|
||||
# API changed in python-prettytable. The try/except is a bad hack to support both versions
|
||||
# Note: two versions are not exactly the same...
|
||||
# Note: two versions are not exactly the same...
|
||||
# (first one: header in center. Second one: left align for header too)
|
||||
try:
|
||||
table.set_field_align(column_header, 'l')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue