[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2013-05-09 Thread Till Maas
Till Maas added the comment: I just tried on a Windows 8 system with python from GIMP. The error occurs there as well if I compare two empty files after I removed permissions for one of the files. I do not know how to manage Windows' file ACLs in python, therefore I created the test case using

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2013-05-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't use filecmp and cannot reproduce problem on Windows, for reason stated, but this looks correct, so I am taking Till's word that this fixes the problem, at least for him. Intentionally applied to 2.7 only for reason stated by Andrew. Till, if you submi

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2013-05-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1823cf6e1084 by Terry Jan Reedy in branch '2.7': Issue 16584: in filecomp._cmp, catch IOError as well as os.error. http://hg.python.org/cpython/rev/1823cf6e1084 -- nosy: +python-dev ___ Python tracker

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2013-05-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2013-05-07 Thread Till Maas
Till Maas added the comment: When might this be patched in Python 2.X? This Exception makes the function pretty useless for me, since it makes by custom compare script crash. -- ___ Python tracker

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2012-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: The error can be reproduced for 2.7 and 3.2. Starting from 3.3 os.error and IOError both aliases for OSError and patch doesn't needed. -- nosy: +asvetlov ___ Python tracker __

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2012-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3.0, Win 7, 64 bit, with print() and exception as e (which also works in 2.7 for more portable code ;-) >>> (['testfile'], [], []) It this correct for Windows, where I believe chmod is a no-op? -- nosy: +terry.reedy ___

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2012-12-01 Thread Daniel Urban
Changes by Daniel Urban : -- stage: -> patch review type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2012-11-30 Thread Till Maas
Changes by Till Maas : -- keywords: +patch Added file: http://bugs.python.org/file28169/filecmp_exception.patch ___ Python tracker ___ ___

[issue16584] unhandled IOError filecmp.cmpfiles() if file not readable

2012-11-30 Thread Till Maas
New submission from Till Maas: If filecmp is used with files that the user is not allowed to read, it creates an IOError exception instead of returning the file's name as an file that could not compared. The documentation says: http://docs.python.org/2/library/filecmp.html Returns three lists