]> granicus.if.org Git - python/commit
Adapted version of SF Patch #103173 by pyretic: make uu.decode work
authorGuido van Rossum <guido@python.org>
Wed, 10 Jan 2001 19:14:28 +0000 (19:14 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 10 Jan 2001 19:14:28 +0000 (19:14 +0000)
commit62c11155eb13e950e10d660b8f5150e04efb3a5e
tree8cc30db3133cabc84daf72ea6124d2eac90bb926
parent3d15bd88063019352d11382f5d1b36b6845f65dc
Adapted version of SF Patch #103173 by pyretic: make uu.decode work
with spaces in filename.

I changed the module to use string methods instead of the string
module.  Also, instead of stripping the last character of the filename
(assuming this is the linefeed), I strip trailing whitespace (assuming
creating files with trailing whitespace in their name cannot possibly
be a wise idea).

(Note that I believe that /F's "workaround for broken uuencoders" is
no longer needed since the recent fix to binascii.c, but I'll leave it
in since it appears pretty harmless.)
Lib/uu.py