summaryrefslogtreecommitdiffstats
path: root/Lib/quopri.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-04 05:36:56 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-04 05:36:56 (GMT)
commit527e64fd68046cb6e2ff35afaf077160346d37ff (patch)
tree3cf41f7c2d1dcaabb1e36a89981820e2e4922800 /Lib/quopri.py
parent2f93e28a19e3f250e8c19f9f4334cfa76f5e3645 (diff)
downloadcpython-527e64fd68046cb6e2ff35afaf077160346d37ff.zip
cpython-527e64fd68046cb6e2ff35afaf077160346d37ff.tar.gz
cpython-527e64fd68046cb6e2ff35afaf077160346d37ff.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/quopri.py')
-rwxr-xr-xLib/quopri.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/quopri.py b/Lib/quopri.py
index 0425735..6d7cdd6 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -12,10 +12,10 @@ HEX = '0123456789ABCDEF'
EMPTYSTRING = ''
try:
- from binascii import a2b_qp, b2a_qp
+ from binascii import a2b_qp, b2a_qp
except:
- a2b_qp = None
- b2a_qp = None
+ a2b_qp = None
+ b2a_qp = None
def needsquoting(c, quotetabs, header):
@@ -28,7 +28,7 @@ def needsquoting(c, quotetabs, header):
if c in ' \t':
return quotetabs
# if header, we have to escape _ because _ is used to escape space
- if c == '_':
+ if c == '_':
return header
return c == ESCAPE or not (' ' <= c <= '~')
@@ -55,7 +55,7 @@ def encode(input, output, quotetabs, header = 0):
odata = b2a_qp(data, quotetabs = quotetabs, header = header)
output.write(odata)
return
-
+
def write(s, output=output, lineEnd='\n'):
# RFC 1521 requires that the line ending in a space or tab must have
# that trailing character encoded.