fix compatibility with python2.6

This commit is contained in:
Romain Bignon 2015-05-24 13:10:32 +02:00
commit e3975f38b3
2 changed files with 3 additions and 3 deletions

View file

@ -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: