File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ def to_string(self):
134
134
if footer :
135
135
result .append (footer )
136
136
137
+ if py3compat .PY3 :
138
+ return unicode (u'\n ' .join (result ))
137
139
return com .console_encode (u'\n ' .join (result ))
138
140
139
141
if py3compat .PY3 : # pragma: no cover
Original file line number Diff line number Diff line change @@ -584,6 +584,9 @@ def __repr__(self):
584
584
else :
585
585
self .to_string (buf = buf )
586
586
value = buf .getvalue ()
587
+
588
+ if py3compat .PY3 :
589
+ return unicode (value )
587
590
return com .console_encode (value )
588
591
589
592
def _repr_html_ (self ):
Original file line number Diff line number Diff line change @@ -848,6 +848,8 @@ def __repr__(self):
848
848
else :
849
849
result = '%s' % ndarray .__repr__ (self )
850
850
851
+ if py3compat .PY3 :
852
+ return unicode (result )
851
853
return com .console_encode (result )
852
854
853
855
def _tidy_repr (self , max_vals = 20 ):
You can’t perform that action at this time.
0 commit comments