]> granicus.if.org Git - python/commit
- Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
authorBarry Warsaw <barry@python.org>
Tue, 5 Aug 2014 15:28:12 +0000 (11:28 -0400)
committerBarry Warsaw <barry@python.org>
Tue, 5 Aug 2014 15:28:12 +0000 (11:28 -0400)
commit7c549c4e6445b25c95491571af8dfa6532570866
treed5f3bf11bea329a38e91ad4bddc66adef5aeae4f
parent17fd1e1013e27032a8a14cc4a1e0521ef75d3699
- Issue #21539: Add a *exists_ok* argument to `Pathlib.mkdir()` to mimic
  `mkdir -p` and `os.makedirs()` functionality.  When true, ignore
  FileExistsErrors.  Patch by Berker Peksag.

(With minor cleanups, additional tests, doc tweaks, etc. by Barry)

Also:

* Remove some unused imports in test_pathlib.py reported by pyflakes.
Doc/library/pathlib.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Lib/test/test_platform.py
Misc/NEWS