summaryrefslogtreecommitdiffstats
path: root/Lib/quopri.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/quopri.py')
-rwxr-xr-xLib/quopri.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/quopri.py b/Lib/quopri.py
index 6d7cdd6..edee3d9 100755
--- a/Lib/quopri.py
+++ b/Lib/quopri.py
@@ -61,6 +61,8 @@ def encode(input, output, quotetabs, header = 0):
# that trailing character encoded.
if s and s[-1:] in ' \t':
output.write(s[:-1] + quote(s[-1]) + lineEnd)
+ elif s == '.':
+ output.write(quote(s) + lineEnd)
else:
output.write(s + lineEnd)