def rmdir(path, *args, **kwargs):
    'os.rmdir with our optional checking for open files'
    assert_no_open_files(path)
    os.rmdir(path)
os.rmdir with our optional checking for open files
def rmdir(path, *args, **kwargs):
    
    assert_no_open_files(path)
    os.rmdir(path)