• Paul Ganssle's avatar
    Fix race condition in _bypass_ensure_directory · 342443f5
    Paul Ganssle authored
    This fixes a race condition in _bypass_ensure_directory where
    two threads or processes may erroneously fail because they are
    both creating the same directory. A more robust implementation
    of this may involve exposing the un-wrapped os.makedirs.
    
    Originally reported with proposed patch by @JonKohler in
    github PR #1412. This patch came out of discussions on that
    thread.
    342443f5
__init__.py 102 KB