diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index 85b1b22..262258b 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -433,7 +433,7 @@ class PlainTextFormatter(BaseFormatter): # This uses use StringIO, as cStringIO doesn't handle unicode. stream = StringIO() printer = pretty.RepresentationPrinter(stream, self.verbose, - self.max_width, self.newline, + self.max_width, self.newline.encode(), singleton_pprinters=self.singleton_printers, type_pprinters=self.type_printers, deferred_pprinters=self.deferred_printers)