[issue3177] Add shutil.open
report at bugs.python.org
Mon Apr 23 20:33:03 CEST 2012
Hobs <hobsonlane at gmail.com> added the comment:
Yea, I hosed up the path quoting in a misguided attempt at shortening for
80-col line-wrapping. Yours is better, will revert.
On Tue, Apr 24, 2012 at 2:09 AM, Chris Rebert <report at bugs.python.org>wrote:
> Chris Rebert <pybugs at rebertia.com> added the comment:
> The FileNotFoundErrors quote the path twice:
> Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
> >>> path = "/foo/bar"
> >>> print "Path '%s' may not exist" % repr(path)
> Path ''/foo/bar'' may not exist
> The ValueError error message isn't grammatically correct and doesn't
> account for the possibility that the path is a directory (consider the case
> of a Unix system where the GUI file manager has been uninstalled;
> directories would then fail to open). May I suggest my original message?:
> "No application is associated with files/directories of the given type"
> Python tracker <report at bugs.python.org>
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list