Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

when the OS gives priority to errors such as EACCES over EEXIST.

when the OS gives priority to errors such as EACCES over EEXIST.
@serhiy-storchaka serhiy-storchaka added type-bug An unexpected behavior, bug, or error needs backport to 2.7 labels Mar 24, 2017
@serhiy-storchaka serhiy-storchaka requested a review from pitrou March 24, 2017 17:19
@mention-bot
Copy link

@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @brettcannon, @zooba and @warsaw to be potential reviewers.

fd = self._raw_open(flags, mode)
os.close(fd)

def mkdir(self, mode=0o777, parents=False, exist_ok=False):
Copy link
Member

Choose a reason for hiding this comment

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

Could you quickly add a docstring? Maybe "Create a new directory at this given path."?

A more thorough one is probably even better explaining the parameters, but the one-liner is better than nothing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@serhiy-storchaka serhiy-storchaka merged commit af7b9ec into python:master Mar 24, 2017
@serhiy-storchaka serhiy-storchaka deleted the pathlib-mkdir-exist_ok-root branch March 24, 2017 18:51
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 24, 2017
…python#805)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Mar 24, 2017
…python#805)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
serhiy-storchaka added a commit that referenced this pull request Mar 24, 2017
…#805) (#807)

when the OS gives priority to errors such as EACCES over EEXIST.

(cherry picked from commit af7b9ec)
@miss-islington
Copy link
Contributor

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker af7b9ec5c855366feef4c67dc492d64b3baf84ca 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants