summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-09 19:07:22 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-09 19:07:22 (GMT)
commitd9e5d17407f21e25b5540efe77c891537763816e (patch)
treee90cde77ef1270ec6494778c3d93e90f3392d234 /Demo
parent3d548717f502b068a582f3f1de82084dbd100c7a (diff)
downloadcpython-d9e5d17407f21e25b5540efe77c891537763816e.zip
cpython-d9e5d17407f21e25b5540efe77c891537763816e.tar.gz
cpython-d9e5d17407f21e25b5540efe77c891537763816e.tar.bz2
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/scripts/makedir.py2
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)