Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30841)

Unified Diff: Lib/pathlib.py

Issue 19921: Path.mkdir(0, True) always fails
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/test/test_pathlib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/pathlib.py Sun Dec 08 10:06:04 2013 +0100
+++ b/Lib/pathlib.py Sun Dec 08 12:24:02 2013 +0200
@@ -1096,7 +1096,7 @@
except OSError as e:
if e.errno != ENOENT:
raise
- self.parent.mkdir(mode, True)
+ self.parent.mkdir(parents=True)
self._accessor.mkdir(self, mode)
def chmod(self, mode):
« no previous file with comments | « no previous file | Lib/test/test_pathlib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+