diff options
author | Guido van Rossum <guido@python.org> | 1999-06-09 19:07:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-06-09 19:07:22 (GMT) |
commit | d9e5d17407f21e25b5540efe77c891537763816e (patch) | |
tree | e90cde77ef1270ec6494778c3d93e90f3392d234 | |
parent | 3d548717f502b068a582f3f1de82084dbd100c7a (diff) | |
download | cpython-d9e5d17407f21e25b5540efe77c891537763816e.zip cpython-d9e5d17407f21e25b5540efe77c891537763816e.tar.gz cpython-d9e5d17407f21e25b5540efe77c891537763816e.tar.bz2 |
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
-rwxr-xr-x | Demo/scripts/makedir.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def main(): 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) |