[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.

This commit is contained in:
Andrew M. Kuchling 2003-08-29 18:40:03 +00:00
parent e752e20605
commit 72cdb70296
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ def alt(c):
return _ctoi(c) | 0x80
def unctrl(c):
if isprint(c):
return chr(_ctoi(c))
bits = _ctoi(c)
if bits == 0x7f:
rep = "^?"