diff options
author | Guido van Rossum <guido@python.org> | 1997-12-10 18:54:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-10 18:54:36 (GMT) |
commit | e44a8d99877d4ff6b7ee720c7c7d9026011c9260 (patch) | |
tree | ca14e92f3185ae24da8ec6d92914b196df988d9d /Lib | |
parent | 9ab94c18d8ce2dedffe95c2240d014c4ff0b0370 (diff) | |
download | cpython-e44a8d99877d4ff6b7ee720c7c7d9026011c9260.zip cpython-e44a8d99877d4ff6b7ee720c7c7d9026011c9260.tar.gz cpython-e44a8d99877d4ff6b7ee720c7c7d9026011c9260.tar.bz2 |
Support uue and x-uue as short names for uuencode.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/mimetools.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/mimetools.py b/Lib/mimetools.py index cda1f37..5489aa0 100644 --- a/Lib/mimetools.py +++ b/Lib/mimetools.py @@ -138,7 +138,7 @@ def decode(input, output, encoding): if encoding == 'quoted-printable': import quopri return quopri.decode(input, output) - if encoding in ('uuencode', 'x-uuencode'): + if encoding in ('uuencode', 'x-uuencode', 'uue', 'x-uue'): import uu return uu.decode(input, output) if decodetab.has_key(encoding): @@ -154,7 +154,7 @@ def encode(input, output, encoding): if encoding == 'quoted-printable': import quopri return quopri.encode(input, output, 0) - if encoding in ('uuencode', 'x-uuencode'): + if encoding in ('uuencode', 'x-uuencode', 'uue', 'x-uue'): import uu return uu.encode(input, output) if encodetab.has_key(encoding): @@ -177,6 +177,8 @@ rm $TEMP decodetab = { 'uuencode': uudecode_pipe, 'x-uuencode': uudecode_pipe, + 'uue': uudecode_pipe, + 'x-uue': uudecode_pipe, 'quoted-printable': 'mmencode -u -q', 'base64': 'mmencode -u -b', } @@ -184,6 +186,8 @@ decodetab = { encodetab = { 'x-uuencode': 'uuencode tempfile', 'uuencode': 'uuencode tempfile', + 'x-uue': 'uuencode tempfile', + 'uue': 'uuencode tempfile', 'quoted-printable': 'mmencode -q', 'base64': 'mmencode -b', } |