mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion!
This commit is contained in:
parent
3d548717f5
commit
d9e5d17407
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ def main():
|
||||||
makedirs(p)
|
makedirs(p)
|
||||||
|
|
||||||
def 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)
|
head, tail = os.path.split(p)
|
||||||
makedirs(head)
|
makedirs(head)
|
||||||
os.mkdir(p, 0777)
|
os.mkdir(p, 0777)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue