Commit d1c29653 authored by Tim Peters's avatar Tim Peters

Whitespace normalization; the plat-riscos file didn't even get by

tabnanny.py.
parent 8734952a
...@@ -12,7 +12,7 @@ HEX = '0123456789ABCDEF' ...@@ -12,7 +12,7 @@ HEX = '0123456789ABCDEF'
EMPTYSTRING = '' EMPTYSTRING = ''
def needsquoting(c, quotetabs): def needsquoting(c, quotetabs):
"""Decide whether a particular character needs to be quoted. """Decide whether a particular character needs to be quoted.
...@@ -30,7 +30,7 @@ def quote(c): ...@@ -30,7 +30,7 @@ def quote(c):
return ESCAPE + HEX[i/16] + HEX[i%16] return ESCAPE + HEX[i/16] + HEX[i%16]
def encode(input, output, quotetabs): def encode(input, output, quotetabs):
"""Read 'input', apply quoted-printable encoding, and write to 'output'. """Read 'input', apply quoted-printable encoding, and write to 'output'.
...@@ -88,7 +88,7 @@ def encodestring(s, quotetabs=0): ...@@ -88,7 +88,7 @@ def encodestring(s, quotetabs=0):
return outfp.getvalue() return outfp.getvalue()
def decode(input, output): def decode(input, output):
"""Read 'input', apply quoted-printable decoding, and write to 'output'. """Read 'input', apply quoted-printable decoding, and write to 'output'.
...@@ -131,7 +131,7 @@ def decodestring(s): ...@@ -131,7 +131,7 @@ def decodestring(s):
return outfp.getvalue() return outfp.getvalue()
# Other helper functions # Other helper functions
def ishex(c): def ishex(c):
"""Return true if the character 'c' is a hexadecimal digit.""" """Return true if the character 'c' is a hexadecimal digit."""
...@@ -153,7 +153,7 @@ def unhex(s): ...@@ -153,7 +153,7 @@ def unhex(s):
return bits return bits
def main(): def main():
import sys import sys
import getopt import getopt
...@@ -197,6 +197,6 @@ def main(): ...@@ -197,6 +197,6 @@ def main():
sys.exit(sts) sys.exit(sts)
if __name__ == '__main__': if __name__ == '__main__':
main() main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment