Message218021
I'm good with just adding an example to the docs, along the lines of Paul's del_rw. I think it would be better to use a more conservative example though, something like:
def readonly_handler(rm_func, path, exc_info):
if issubclass(exc_info[0], PermissionError) and exc_info[1].winerror == 5:
os.chmod(path, stat.S_IWRITE)
return rm_func(path)
raise exc_info[1] |
|
Date |
User |
Action |
Args |
2014-05-06 21:17:30 | zach.ware | set | recipients:
+ zach.ware, paul.moore, tim.golden, r.david.murray, Jovik, ivan.radic |
2014-05-06 21:17:30 | zach.ware | set | messageid: <1399411050.19.0.827833827845.issue19643@psf.upfronthosting.co.za> |
2014-05-06 21:17:30 | zach.ware | link | issue19643 messages |
2014-05-06 21:17:29 | zach.ware | create | |
|