]> granicus.if.org Git - python/commit
decode(): Raise a uu.Error if no out_file is given but the file
authorBarry Warsaw <barry@python.org>
Fri, 17 Aug 2001 19:59:34 +0000 (19:59 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 17 Aug 2001 19:59:34 +0000 (19:59 +0000)
commit59dae8ad360d2a13e1e7615c04c29863f7de562b
tree7c6895f2fff581cba927f7a5a4a717cd03172f16
parentde642bdc5db10f2ef42dcd75b47faccd0fbee585
decode(): Raise a uu.Error if no out_file is given but the file
    specified in the uu header already exists.  No additional
    workaround is provided since out_file=pathname is a deprecated
    interface, so it is better to simply pass a file-like object into
    out_file anyway.  This closes SF bug #438083.

Use isinstance() tests instead of type comparisons.
Lib/uu.py