diff options
author | Guido van Rossum <guido@python.org> | 2002-09-29 00:25:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-09-29 00:25:51 (GMT) |
commit | bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee (patch) | |
tree | a5fe735c4e0ca016924636adfe155445f84e6d3b /Lib/curses/ascii.py | |
parent | af7a302c78258d418eba57bc2f80e4dabd8bbe9a (diff) | |
download | cpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.zip cpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.tar.gz cpython-bffa52f07fc73b3c8eb4b30e30e2417bc406d2ee.tar.bz2 |
Whitespace normalization (get rid of tabs).
Diffstat (limited to 'Lib/curses/ascii.py')
-rw-r--r-- | Lib/curses/ascii.py | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/Lib/curses/ascii.py b/Lib/curses/ascii.py index 3c21169..b8ae6f3 100644 --- a/Lib/curses/ascii.py +++ b/Lib/curses/ascii.py @@ -1,41 +1,41 @@ """Constants and membership tests for ASCII characters""" -NUL = 0x00 # ^@ -SOH = 0x01 # ^A -STX = 0x02 # ^B -ETX = 0x03 # ^C -EOT = 0x04 # ^D -ENQ = 0x05 # ^E -ACK = 0x06 # ^F -BEL = 0x07 # ^G -BS = 0x08 # ^H -TAB = 0x09 # ^I -HT = 0x09 # ^I -LF = 0x0a # ^J -NL = 0x0a # ^J -VT = 0x0b # ^K -FF = 0x0c # ^L -CR = 0x0d # ^M -SO = 0x0e # ^N -SI = 0x0f # ^O -DLE = 0x10 # ^P -DC1 = 0x11 # ^Q -DC2 = 0x12 # ^R -DC3 = 0x13 # ^S -DC4 = 0x14 # ^T -NAK = 0x15 # ^U -SYN = 0x16 # ^V -ETB = 0x17 # ^W -CAN = 0x18 # ^X -EM = 0x19 # ^Y -SUB = 0x1a # ^Z -ESC = 0x1b # ^[ -FS = 0x1c # ^\ -GS = 0x1d # ^] -RS = 0x1e # ^^ -US = 0x1f # ^_ -SP = 0x20 # space -DEL = 0x7f # delete +NUL = 0x00 # ^@ +SOH = 0x01 # ^A +STX = 0x02 # ^B +ETX = 0x03 # ^C +EOT = 0x04 # ^D +ENQ = 0x05 # ^E +ACK = 0x06 # ^F +BEL = 0x07 # ^G +BS = 0x08 # ^H +TAB = 0x09 # ^I +HT = 0x09 # ^I +LF = 0x0a # ^J +NL = 0x0a # ^J +VT = 0x0b # ^K +FF = 0x0c # ^L +CR = 0x0d # ^M +SO = 0x0e # ^N +SI = 0x0f # ^O +DLE = 0x10 # ^P +DC1 = 0x11 # ^Q +DC2 = 0x12 # ^R +DC3 = 0x13 # ^S +DC4 = 0x14 # ^T +NAK = 0x15 # ^U +SYN = 0x16 # ^V +ETB = 0x17 # ^W +CAN = 0x18 # ^X +EM = 0x19 # ^Y +SUB = 0x1a # ^Z +ESC = 0x1b # ^[ +FS = 0x1c # ^\ +GS = 0x1d # ^] +RS = 0x1e # ^^ +US = 0x1f # ^_ +SP = 0x20 # space +DEL = 0x7f # delete controlnames = [ "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", @@ -53,7 +53,7 @@ def _ctoi(c): def isalnum(c): return isalpha(c) or isdigit(c) def isalpha(c): return isupper(c) or islower(c) -def isascii(c): return _ctoi(c) <= 127 # ? +def isascii(c): return _ctoi(c) <= 127 # ? def isblank(c): return _ctoi(c) in (8,32) def iscntrl(c): return _ctoi(c) <= 31 def isdigit(c): return _ctoi(c) >= 48 and _ctoi(c) <= 57 @@ -97,4 +97,3 @@ def unctrl(c): if bits & 0x80: return "!" + rep return rep - |