diff options
author | Barry Warsaw <barry@python.org> | 2007-08-31 03:26:19 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2007-08-31 03:26:19 (GMT) |
commit | 7aa02e6590e2155e8f72bb4491c96db40a50cac3 (patch) | |
tree | 8ada82dce8e2095d168bcac349b787fb7475c03b /Lib/email/quoprimime.py | |
parent | 0616b792ba4115fe3bb79c446c2c6383db434490 (diff) | |
download | cpython-7aa02e6590e2155e8f72bb4491c96db40a50cac3.zip cpython-7aa02e6590e2155e8f72bb4491c96db40a50cac3.tar.gz cpython-7aa02e6590e2155e8f72bb4491c96db40a50cac3.tar.bz2 |
More email package fixes.
Fix a couple of tests since .body_encode()'s arguments have changed. Also, I
think body_encode() should take a string not a byte array for consistency with
the rest of the api (but I'm not positive about this). In
quoprimime.body_encode(), body_check() must be passed an int.
Current status: 7F (no errors!)
Diffstat (limited to 'Lib/email/quoprimime.py')
-rw-r--r-- | Lib/email/quoprimime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/quoprimime.py b/Lib/email/quoprimime.py index e59479c..68dc11c 100644 --- a/Lib/email/quoprimime.py +++ b/Lib/email/quoprimime.py @@ -189,7 +189,7 @@ def body_encode(body, maxlinelen=76, eol=NL): for j in range(linelen): c = line[j] prev = c - if body_check(c): + if body_check(ord(c)): c = quote(c) elif j+1 == linelen: # Check for whitespace at end of line; special case |