uu
This module encodes and decodes files in uuencode format, allowing
arbitrary binary data to be transferred over ascii-only connections.
Whereever a file argument is expected, the methods accept either a
pathname ('-'
for stdin/stdout) or a file-like object.
Normally you would pass filenames, but there is one case where you have to open the file yourself: if you are on a non-unix platform and your binary file is actually a textfile that you want encoded unix-compatible you will have to open the file yourself as a textfile, so newline conversion is performed.
This code was contributed by Lance Ellinghouse, and modified by Jack Jansen.
The uu
module defines the following functions:
'-'
and 0666
respectively.