diff options
-rw-r--r-- | pexpect/screen.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pexpect/screen.py b/pexpect/screen.py index 4bf77ac..a8d67f3 100644 --- a/pexpect/screen.py +++ b/pexpect/screen.py @@ -110,8 +110,8 @@ class screen: return unicode(s) def _unicode (self): - '''This returns a printable representation of the screen in unicode - form (which, under Python 3.x, is the same as 'str'). The end of each + '''This returns a printable representation of the screen as a unicode + string (which, under Python 3.x, is the same as 'str'). The end of each screen line is terminated by a newline.''' return u'\n'.join ([ u''.join(c) for c in self.w ]) @@ -134,9 +134,9 @@ class screen: return u''.join ([ u''.join(c) for c in self.w ]) def pretty (self): - '''This returns a copy of the screen as a string with an ASCII text box - around the screen border. This is similar to __str__/__unicode__ except - that it adds a box.''' + '''This returns a copy of the screen as a unicode string with an ASCII + text box around the screen border. This is similar to + __str__/__unicode__ except that it adds a box.''' top_bot = u'+' + u'-'*self.cols + u'+\n' return top_bot + u'\n'.join([u'|'+line+u'|' for line in unicode(self).split(u'\n')]) + u'\n' + top_bot |