*** orig-os.py Wed Oct 5 13:00:38 2005 --- os.py Wed Oct 5 13:03:05 2005 *************** *** 156,162 **** makedirs(head, mode) if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists return ! mkdir(name, mode) def removedirs(name): """removedirs(path) --- 156,167 ---- makedirs(head, mode) if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists return ! # Without the "if", it raised an exception if the first part of ! # the path already exists. It still will if that prefix is a file ! # rather than a directory, or permissions prevent it from continuing, ! # but it will now work in the more normal case. ! if not path.isdir(name): ! mkdir(name, mode) def removedirs(name): """removedirs(path)