Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #27186: Update os.fspath()/PyOS_FSPath() to check the return | Brett Cannon | 2016-06-24 | 1 | -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 Cannon | 2016-06-09 | 1 | -10/+6 |
| | |||||
* | issue27186: fix fsencode/fsdecode and update tests; patch by Jelle Zijlstra | Ethan Furman | 2016-06-04 | 1 | -2/+2 |
| | |||||
* | issue27186: add PathLike ABC | Ethan Furman | 2016-06-04 | 1 | -1/+16 |
| | |||||
* | issue27186: add C version of os.fspath(); patch by Jelle Zijlstra | Ethan Furman | 2016-06-04 | 1 | -17/+18 |
| | |||||
* | issue27182: update fsencode and fsdecode for os.path(); patch by Dusty Phillips | Ethan Furman | 2016-06-04 | 1 | -8/+14 |
| | |||||
* | issue27186 -- initial docs, tests, and python version of os.fspath | Ethan Furman | 2016-06-02 | 1 | -0/+21 |
| | |||||
* | Fix os._DummyDirEntry.is_symlink() | Victor Stinner | 2016-03-29 | 1 | -6/+17 |
| | | | | | Issue #25911: Fix os._DummyDirEntry.is_symlink(), don't follow symbolic links: use os.stat(path, follow_symlinks=False). | ||||
* | Enhance os._DummyDirEntry | Victor Stinner | 2016-03-24 | 1 | -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 Storchaka | 2016-02-11 | 1 | -1/+5 |
| | | | | Different solution from 3.5. | ||||
* | Issue #25994: Added the close() method and the support of the context manager | Serhiy Storchaka | 2016-02-11 | 1 | -39/+55 |
| | | | | protocol for the os.scandir() iterator. | ||||
* | Issue #25911: Restored support of bytes paths in os.walk() on Windows. | Serhiy Storchaka | 2016-02-08 | 1 | -5/+22 |
| | |||||
* | Issue #25860: os.fwalk() no longer skips remaining directories when error ↵ | Serhiy Storchaka | 2015-12-22 | 1 | -1/+1 |
| | | | | | | occurs. Original patch by Samson Lee. | ||||
* | Issue #25583: Merge makedirs fix from 3.4 into 3.5 | Martin Panter | 2015-11-20 | 1 | -3/+5 |
|\ | |||||
| * | Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True) | Martin Panter | 2015-11-19 | 1 | -3/+5 |
| | | |||||
* | | merge 3.4 (#23929) | Benjamin Peterson | 2015-04-14 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | remove useless word (closes #23929) | Benjamin Peterson | 2015-04-14 | 1 | -1/+1 |
| | | |||||
* | | Issue #23605: Fix typo in an os.walk() comment | Victor Stinner | 2015-03-30 | 1 | -1/+1 |
| | | | | | | | | Thanks Ben Hoyt for the report. | ||||
* | | Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because | Victor Stinner | 2015-03-18 | 1 | -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 followlinks | Victor Stinner | 2015-03-12 | 1 | -2/+3 |
| | | | | | | | | is True | ||||
* | | Issue #23605: os.walk() now calls os.scandir() instead of os.listdir(). | Victor Stinner | 2015-03-10 | 1 | -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 Selivanov | 2014-09-26 | 1 | -0/+4 |
|/ | | | | Patch by Ronald Oussoren. | ||||
* | Issue #21875: Remove vestigial references to Classic Mac OS in os module docs. | Ned Deily | 2014-06-27 | 1 | -1/+1 |
| | |||||
* | clarify when the list of subdirectories is read (closes #13779) | Benjamin Peterson | 2014-06-16 | 1 | -5/+7 |
| | |||||
* | merge 3.3 (#21082) | Benjamin Peterson | 2014-04-01 | 1 | -25/+5 |
|\ | |||||
| * | merge 3.2 (#21082) | Benjamin Peterson | 2014-04-01 | 1 | -25/+5 |
| |\ | |||||
| | * | remove directory mode check from makedirs (closes #21082) | Benjamin Peterson | 2014-04-01 | 1 | -23/+5 |
| | | | |||||
* | | | Fix parameter name in docs for os.makedirs and os.removedirs. | Zachary Ware | 2014-03-20 | 1 | -2/+2 |
| | | | | | | | | | | | | Pointed out by Colin Davis on docs@. | ||||
* | | | Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵ | Christian Heimes | 2013-10-13 | 1 | -1/+1 |
| | | | | | | | | | | | | up interpreter start | ||||
* | | | Issue #19209: Remove import of copyreg from the os module to speed up | Christian Heimes | 2013-10-11 | 1 | -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 except | Victor Stinner | 2013-08-23 | 1 | -2/+2 |
|\ \ \ | |/ / | | | | | | | context when raising a new KeyError with the original key. | ||||
| * | | Close #17702: On error, os.environb now removes suppress the except context | Victor Stinner | 2013-08-23 | 1 | -2/+2 |
| | | | | | | | | | | | | when raising a new KeyError with the original key. | ||||
* | | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -7/+7 |
| | | | |||||
* | | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -7/+7 |
| | | | | | | | | | | | | ModuleNotFoundError. | ||||
* | | | Correction for 4f82b6cfee46. | Richard Oudkerk | 2013-05-07 | 1 | -1/+6 |
| | | | |||||
* | | | Fix os.__all__ to is passes test___all__ | Richard Oudkerk | 2013-05-07 | 1 | -6/+8 |
| | | | |||||
* | | | (Merge 3.3) Close #17702: os.environ now raises KeyError with the original | Victor Stinner | 2013-04-14 | 1 | -4/+12 |
|\ \ \ | |/ / | | | | | | | | | | environment variable name (str on UNIX), instead of using the encoded name (bytes on UNIX). | ||||
| * | | Close #17702: os.environ now raises KeyError with the original environment | Victor Stinner | 2013-04-14 | 1 | -4/+12 |
| | | | | | | | | | | | | variable name (str on UNIX), instead of using the encoded name (bytes on UNIX). | ||||
* | | | modernize some modules' code by replacing ↵ | Giampaolo Rodola' | 2013-02-12 | 1 | -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 Storchaka | 2013-01-08 | 1 | -1/+4 |
|\ \ \ | |/ / | | | | | | | Patch by Alessandro Moura. | ||||
| * | | Issue #15845: Fix comparison between bytes and string. | Serhiy Storchaka | 2013-01-08 | 1 | -1/+4 |
| |\ \ | | |/ | |||||
| | * | Issue #15845: Fix comparison between bytes and string. | Serhiy Storchaka | 2013-01-08 | 1 | -1/+4 |
| | | | |||||
| | * | Revert the modification of e.strerror in 3.2 as that kind of change could | Gregory P. Smith | 2012-06-03 | 1 | -3/+0 |
| | | | | | | | | | | | | break someone's over specified test that depends on the exact error message. | ||||
* | | | fix typo (#16720) | Andrew Svetlov | 2012-12-24 | 1 | -1/+1 |
| | | | |||||
* | | | Use OESeeror instead of os.error (#16720) | Andrew Svetlov | 2012-12-24 | 1 | -7/+7 |
| | | | | | | | | | | | | Patch by Serhiy Storchaka. | ||||
* | | | Issue #16706: get rid of os.error | Andrew Svetlov | 2012-12-18 | 1 | -1/+1 |
| | | | |||||
* | | | merge 3.3 | Benjamin Peterson | 2012-10-09 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | compare singletons by identity not equality (closes #16712) | Benjamin Peterson | 2012-10-09 | 1 | -1/+1 |
| | | | | | | | | | | | | Patch from Serhiy Storchaka. | ||||
* | | | #16135: Removal of OS/2 support (Python code partial cleanup) | Jesus Cea | 2012-10-05 | 1 | -28/+4 |
|/ / | |||||
* | | Issue #15202: Consistently use the name "follow_symlinks" for | Larry Hastings | 2012-07-15 | 1 | -9/+9 |
| | | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka. |