Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mkdir_p function #459

Merged
merged 2 commits into from
Nov 6, 2017
Merged

Conversation

gongweibao
Copy link
Collaborator

@gongweibao gongweibao commented Oct 31, 2017

Fix #460

def mkdir_p(path):
try:
os.makedirs(path)
except OSError as exc: # Python >2.5
Copy link
Collaborator

@typhoonzero typhoonzero Oct 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't intend to support Python <2.5, so we always run into except branch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没看懂你的意思。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是说,应该都不会考虑支持python 2.5以下的版本,所以是否try里的代码都不会被执行到呢。

Copy link
Collaborator Author

@gongweibao gongweibao Nov 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那句话的意思是Python>2.5才能执行到。我还是删除掉注释吧。

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gongweibao gongweibao merged commit af6f76f into PaddlePaddle:develop Nov 6, 2017
@gongweibao gongweibao deleted the testcloud1 branch November 6, 2017 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants