mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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)
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue