summaryrefslogtreecommitdiff
path: root/Lib/curses
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-08-29 18:40:03 +0000
committerAndrew M. Kuchling <amk@amk.ca>2003-08-29 18:40:03 +0000
commitebac10b1684b695b222e962766fbfb949bf06714 (patch)
tree1a7adf74c56b4432f674c85e83a215d5af7d15b7 /Lib/curses
parenta30a67782f26ff60e36a0bdb7d57556c5e7effbc (diff)
downloadcpython-ebac10b1684b695b222e962766fbfb949bf06714.tar.gz
[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
Diffstat (limited to 'Lib/curses')
-rw-r--r--Lib/curses/ascii.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py
index b8ae6f326e..08b5b79f5f 100644
--- a/Lib/curses/ascii.py
+++ b/Lib/curses/ascii.py
@@ -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 = "^?"