commit | d9e5d17407f21e25b5540efe77c891537763816e | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jun 09 19:07:22 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jun 09 19:07:22 1999 +0000 |
tree | e90cde77ef1270ec6494778c3d93e90f3392d234 | |
parent | 3d548717f502b068a582f3f1de82084dbd100c7a [diff] |
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
diff --git a/Demo/scripts/makedir.py b/Demo/scripts/makedir.py index 58efe0e..4c00d88 100755 --- a/Demo/scripts/makedir.py +++ b/Demo/scripts/makedir.py
@@ -12,7 +12,7 @@ makedirs(p) def makedirs(p): - if not os.path.isdir(p): + if p and not os.path.isdir(p): head, tail = os.path.split(p) makedirs(head) os.mkdir(p, 0777)