summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-02 13:48:00 +0930
committerDavid O'Shea <doshea@doshea-centos-x86-64.adl.quantum.com>2014-08-02 13:48:00 +0930
commitc0ed72e1cc57f5d90cdd358f61eb1e6b2a5b60e6 (patch)
treec0469f51d0a047de752d9c5ddc2a4669210cc43a
parenta4b8165da2a7f356e3a12b091727e33e6fcc0d2c (diff)
downloadpexpect-c0ed72e1cc57f5d90cdd358f61eb1e6b2a5b60e6.tar.gz
Change SPACE to be a unicode string.
-rw-r--r--pexpect/screen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pexpect/screen.py b/pexpect/screen.py
index f1f37c1..4bf77ac 100644
--- a/pexpect/screen.py
+++ b/pexpect/screen.py
@@ -44,7 +44,7 @@ CAN = 24 # Cancel escape sequence.
SUB = 26 # Same as CAN.
ESC = 27 # Introduce a control sequence.
DEL = 127 # Fill character; ignored on input.
-SPACE = chr(32) # Space or blank character.
+SPACE = u' ' # Space or blank character.
PY3 = (sys.version_info[0] >= 3)
if PY3:
@@ -141,14 +141,14 @@ class screen:
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
- def fill (self, ch=unicode(SPACE)):
+ def fill (self, ch=SPACE):
if isinstance(ch, bytes):
ch = self._decode(ch)
self.fill_region (1,1,self.rows,self.cols, ch)
- def fill_region (self, rs,cs, re,ce, ch=unicode(SPACE)):
+ def fill_region (self, rs,cs, re,ce, ch=SPACE):
if isinstance(ch, bytes):
ch = self._decode(ch)