fix compatibility with python2.6
This commit is contained in:
parent
c84aa78ffc
commit
e3975f38b3
2 changed files with 3 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ class TableFormatter(IFormatter):
|
|||
def flush(self):
|
||||
s = self.get_formatted_table()
|
||||
if s is not None:
|
||||
self.output(s.encode(guess_encoding(self.outfile), errors='replace'))
|
||||
self.output(s.encode(guess_encoding(self.outfile), 'replace'))
|
||||
|
||||
def get_formatted_table(self):
|
||||
if len(self.queue) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue