Daniel Plachotich added the comment: Probably better solution:
if not (exist_ok and path.isdir(name) and e.errno in (errno.EEXIST, errno.EACCES)): ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25583> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com