diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2003-08-29 18:40:03 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2003-08-29 18:40:03 (GMT) |
commit | 72cdb702966c12857619397460bad3a9cf97d03a (patch) | |
tree | e18e3f85eae8bfba988452d899ff476a8d6e64d5 /Lib/curses/ascii.py | |
parent | e752e20605f3fbcf9976187d3243b2fb01c7d8de (diff) | |
download | cpython-72cdb702966c12857619397460bad3a9cf97d03a.zip cpython-72cdb702966c12857619397460bad3a9cf97d03a.tar.gz cpython-72cdb702966c12857619397460bad3a9cf97d03a.tar.bz2 |
[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
Diffstat (limited to 'Lib/curses/ascii.py')
-rw-r--r-- | Lib/curses/ascii.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py index b8ae6f3..08b5b79 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 = "^?" |