[Python-checkins] python/dist/src/Lib/curses ascii.py,1.5,1.6
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Fri Aug 29 12:40:05 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/curses
In directory sc8-pr-cvs1:/tmp/cvs-serv8407
Modified Files:
ascii.py
Log Message:
[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
Index: ascii.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/curses/ascii.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ascii.py 29 Sep 2002 00:25:51 -0000 1.5
--- ascii.py 29 Aug 2003 18:40:03 -0000 1.6
***************
*** 88,91 ****
--- 88,93 ----
def unctrl(c):
+ if isprint(c):
+ return chr(_ctoi(c))
bits = _ctoi(c)
if bits == 0x7f:
More information about the Python-checkins
mailing list