summaryrefslogtreecommitdiff
path: root/Lib/os.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes empty tuple case.Steve Dower2016-11-191-1/+1
|
* Issue #28732: Adds new errors to spawnv emulation for platforms that only ↵Steve Dower2016-11-191-0/+4
| | | | have fork and execv
* Issue #28353: os.fwalk() no longer fails on broken links.Serhiy Storchaka2016-10-251-129/+120
|\
| * Issue #27998: Removed workarounds for supporting bytes paths on Windows inSerhiy Storchaka2016-10-051-67/+3
| | | | | | | | | | os.walk() function and glob module since os.scandir() now directly supports them.
| * Issue #28324: Remove vestigal MacOS 9 references in os.py docstring.Ned Deily2016-10-011-3/+3
| | | | | | | | Patch by Chi Hsuan Yen.
| * Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-081-4/+1
| |
| * Issue #27355: Removed support for Windows CE. It was never finished,Larry Hastings2016-09-051-23/+2
| | | | | | | | and Windows CE is no longer a relevant platform for Python.
| * Issue #26027, #27524: Add PEP 519/__fspath__() support to os andBrett Cannon2016-08-261-1/+3
| | | | | | | | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
| * Issue #27186: Update os.fspath()/PyOS_FSPath() to check the returnBrett Cannon2016-06-241-30/+41
| | | | | | | | | | | | | | type of __fspath__(). As part of this change, also make sure that the pure Python implementation of os.fspath() is tested.
| * Fix some PEP 8 violations.Brett Cannon2016-06-091-10/+6
| |
| * issue27186: fix fsencode/fsdecode and update tests; patch by Jelle ZijlstraEthan Furman2016-06-041-2/+2
| |
| * issue27186: add PathLike ABCEthan Furman2016-06-041-1/+16
| |
| * issue27186: add C version of os.fspath(); patch by Jelle ZijlstraEthan Furman2016-06-041-17/+18
| |
| * issue27182: update fsencode and fsdecode for os.path(); patch by Dusty PhillipsEthan Furman2016-06-041-8/+14
| |
| * issue27186 -- initial docs, tests, and python version of os.fspathEthan Furman2016-06-021-0/+21
| |
| * Fix os._DummyDirEntry.is_symlink()Victor Stinner2016-03-291-6/+17
| | | | | | | | | | Issue #25911: Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False).
| * Enhance os._DummyDirEntryVictor Stinner2016-03-241-2/+23
| | | | | | | | | | | | | | | | | | Issue #25911: * Try to fix test_os.BytesWalkTests on Windows * Try to mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat()
| * Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.Serhiy Storchaka2016-02-111-1/+5
| | | | | | | | Different solution from 3.5.
| * Issue #25994: Added the close() method and the support of the context managerSerhiy Storchaka2016-02-111-39/+55
| | | | | | | | protocol for the os.scandir() iterator.
* | Issue #28353: os.fwalk() no longer fails on broken links.Serhiy Storchaka2016-10-251-2/+2
| |
* | Issue #25911: Backport os._DummyDirEntry fixesVictor Stinner2016-03-291-2/+36
| | | | | | | | | | | | | | | | | | * Fix test_os.BytesWalkTests on Windows * Mimick better the reference os.DirEntry on Windows * _DummyDirEntry now caches os.stat() result * _DummyDirEntry constructor now tries to get os.stat() * Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False).
* | Fixed a bug in os.walk() with bytes path on Windows caused by merging fixesSerhiy Storchaka2016-02-241-1/+1
| | | | | | | | for issues #25995 and #25911.
* | Issue #25995: os.walk() no longer uses FDs proportional to the tree depth.Serhiy Storchaka2016-02-111-11/+2
|/
* Issue #25911: Restored support of bytes paths in os.walk() on Windows.Serhiy Storchaka2016-02-081-5/+22
|
* Issue #25860: os.fwalk() no longer skips remaining directories when error ↵Serhiy Storchaka2015-12-231-1/+1
| | | | | | occurs. Original patch by Samson Lee.
* Issue #25583: Merge makedirs fix from 3.4 into 3.5Martin Panter2015-11-201-3/+5
|\
| * Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)Martin Panter2015-11-191-3/+5
| |
* | merge 3.4 (#23929)Benjamin Peterson2015-04-131-1/+1
|\ \ | |/
| * remove useless word (closes #23929)Benjamin Peterson2015-04-131-1/+1
| |
* | Issue #23605: Fix typo in an os.walk() commentVictor Stinner2015-03-301-1/+1
| | | | | | | | Thanks Ben Hoyt for the report.
* | Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() becauseVictor Stinner2015-03-181-29/+51
| | | | | | | | | | | | | | the caller can replace the directory with a different file kind. The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and so can be faster than Python 3.4.
* | Issue #23605: os.walk() doesn't need to call entry.is_symlink() if followlinksVictor Stinner2015-03-121-2/+3
| | | | | | | | is True
* | Issue #23605: os.walk() now calls os.scandir() instead of os.listdir().Victor Stinner2015-03-101-15/+36
| | | | | | | | | | The usage of os.scandir() reduces the number of calls to os.stat(). Initial patch written by Ben Hoyt.
* | os: Include posix functions in os.__all__. Closes issue #18554.Yury Selivanov2014-09-261-0/+4
|/ | | | Patch by Ronald Oussoren.
* Issue #21875: Remove vestigial references to Classic Mac OS in os module docs.Ned Deily2014-06-261-1/+1
|
* clarify when the list of subdirectories is read (closes #13779)Benjamin Peterson2014-06-151-5/+7
|
* merge 3.3 (#21082)Benjamin Peterson2014-04-011-72/+27
|\
| * Fix parameter name in docs for os.makedirs and os.removedirs.Zachary Ware2014-03-201-2/+2
| | | | | | | | Pointed out by Colin Davis on docs@.
| * Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵Christian Heimes2013-10-131-1/+1
| | | | | | | | up interpreter start
| * Issue #19209: Remove import of copyreg from the os module to speed upChristian Heimes2013-10-121-27/+0
| | | | | | | | | | | | interpreter startup. stat_result and statvfs_result are now hard-coded to reside in the os module. The patch is based on Victor Stinner's patch.
| * (Merge 3.3) Close #17702: On error, os.environb now removes suppress the exceptVictor Stinner2013-08-231-2/+2
| |\ | | | | | | | | | context when raising a new KeyError with the original key.
| * | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-7/+7
| | |
| * | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-131-7/+7
| | | | | | | | | | | | ModuleNotFoundError.
| * | Correction for 4f82b6cfee46.Richard Oudkerk2013-05-071-1/+6
| | |
| * | Fix os.__all__ to is passes test___all__Richard Oudkerk2013-05-071-6/+8
| | |
| * | (Merge 3.3) Close #17702: os.environ now raises KeyError with the originalVictor Stinner2013-04-141-4/+12
| |\ \ | | | | | | | | | | | | | | | | environment variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
| * | | modernize some modules' code by replacing ↵Giampaolo Rodola'2013-02-121-3/+2
| | | | | | | | | | | | | | | | OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
| * | | Issue #15845: Fix comparison between bytes and string.Serhiy Storchaka2013-01-081-36/+12
| |\ \ \ | | | | | | | | | | | | | | | Patch by Alessandro Moura.
| | * | | fix typo (#16720)Andrew Svetlov2012-12-241-1/+1
| | | | |
| | * | | Use OESeeror instead of os.error (#16720)Andrew Svetlov2012-12-241-7/+7
| | | | | | | | | | | | | | | | | | | | Patch by Serhiy Storchaka.