summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-04 14:38:34 +0930
committerDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-04 14:38:34 +0930
commit502dddd3d5553329504cdce1773506421a06537a (patch)
treecb7052b099f942b9f57a4d4525f9c095e6cfef09
parentcf3ad0db373029270477b80ef78a13f9d2f30488 (diff)
downloadpexpect-git-502dddd3d5553329504cdce1773506421a06537a.tar.gz
Address review comments regarding referring to "unicode strings" in docstrings.
-rw-r--r--pexpect/screen.py10
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