decode
(in_file, out_file=None, mode=None, quiet=False)This method decodes encoded data taken as file in_file and after decoding place it to the result on file out_file as output. If out_file has a pathname, mode can be used to set the permission bits for the file to be created. If not specify defaults for out_file and mode are taken from the uuencode header. However, if the file in the header already exists, a uu.Error
is raised.
decode()
may print a warning to standard error if the input was produced by an incorrect uuencoder and Python could recover from that error. Setting 'quiet' to a true value silences this warning.
import uu
import StringIO
infile = "sample1.uue"
fi = open(infile)
fo = StringIO.StringIO()
uu.decode(fi, fo)
Name | Views | Likes |
---|---|---|
Python pyclbr Introducton | 506 | 2 |
Python termios Introduction | 537 | 1 |
Python uu error method | 429 | 2 |
Python termios tcflush method | 360 | 1 |
Python gzip compress method | 304 | 1 |
Python uu decode method | 428 | 3 |
Python gzip GzipFile method | 372 | 1 |
Python cgitb handler | 429 | 2 |
Python pyclbr readmodule_ex | 625 | 2 |
Python termios tcgetattr method | 569 | 1 |
Python gzip open method | 351 | 1 |
Python uu encode method | 461 | 3 |
Python termios tcflow method | 311 | 1 |
Python cgitb Introduction | 732 | 2 |
Python termios tcsetattr method | 475 | 1 |
Python gzip BadGzipFile method | 1165 | 1 |
Python gzip introduction | 293 | 1 |
Python cgitb text method | 424 | 2 |
Python uu Introduction | 560 | 4 |
Python cgitb html method | 418 | 2 |
Python termios tcdrain method | 323 | 0 |
Python pyclbr readmodule method | 604 | 2 |
Python cgitb enable method | 649 | 2 |
Python gzip decompress method | 258 | 1 |
Python termios tcsendbreak method | 486 | 1 |
Python pyclbr instances of Function and Class | 606 | 2 |
Comments