Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-118263: Add additional arguments to path_t (Argument Clinic type) in ↵ | Nice Zombies | 2024-05-28 | 1 | -0/+2 |
| | | | | posixmodule (GH-119608) | ||||
* | gh-118507 : Refactor ntpath native functions (gh-119381) | Nice Zombies | 2024-05-22 | 1 | -0/+21 |
| | | | | This refactoring will make future backports easier without changing behaviours, apart from correcting a bug when passing a pipe to `ntpath.isfile`. | ||||
* | [3.12] gh-106242: Make ntpath.realpath errors consistent with abspath when ↵ | Miss Islington (bot) | 2023-08-22 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | there are embedded nulls (GH-108248) (#108251) gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls (GH-108248) * gh-106242: Make ntpath.realpath errors consistent with abspath when there are embedded nulls * Update 2023-08-22-00-36-57.gh-issue-106242.q24ITw.rst mention Windows and the former incorrect ValueError. --------- (cherry picked from commit de33b5c662ea8d35d81ed857c6a39e34ab94c510) Co-authored-by: Steve Dower <steve.dower@python.org> Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | [3.12] gh-106844: Fix issues in _winapi.LCMapStringEx (GH-107832) (#107874) | Serhiy Storchaka | 2023-08-16 | 1 | -0/+1 |
| | | | | | | | | | | * Strings with length from 2**31-1 to 2**32-2 always caused MemoryError, it doesn't matter how much memory is available. * Strings with length exactly 2**32-1 caused OSError. * Strings longer than 2**32-1 characters were truncated due to integer overflow bug. * Strings containing the null character were truncated at the first null character. Now strings longer than 2**31-1 characters caused OverflowError and the null character is allowed.. (cherry picked from commit 04cc01453db2f0af72a06440831637f8bf512daf) | ||||
* | gh-104803: Implement ntpath.isdevdrive for checking whether a path is on a ↵ | Miss Islington (bot) | 2023-05-29 | 1 | -0/+20 |
| | | | | | | | Windows Dev Drive (GH-104805) (cherry picked from commit bfd20d257e4ad16a25f4bac0ea4dbb719cdf6bc7) Co-authored-by: Steve Dower <steve.dower@python.org> | ||||
* | GH-78079: Fix UNC device path root normalization in pathlib (GH-102003) | Barney Gale | 2023-04-14 | 1 | -0/+8 |
| | | | | | | | We no longer add a root to device paths such as `//./PhysicalDrive0`, `//?/BootPartition` and `//./c:` while normalizing. We also avoid adding a root to incomplete UNC share paths, like `//`, `//a` and `//a/`. Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | GH-103220: Fix `ntpath.join()` of partial UNC drive with trailing slash ↵ | Barney Gale | 2023-04-11 | 1 | -0/+5 |
| | | | | (GH-103221) | ||||
* | GH-88013: Fix TypeError raised by ntpath.realpath in some cases (GH-102813) | AN Long | 2023-04-07 | 1 | -0/+7 |
| | |||||
* | gh-101360: Fix anchor matching in pathlib.PureWindowsPath.match() (GH-101363) | Barney Gale | 2023-02-17 | 1 | -0/+4 |
| | | | | Use `fnmatch` to match path and pattern anchors, just as we do for other path parts. This allows patterns such as `'*:/Users/*'` to be matched. | ||||
* | gh-101196: Make isdir/isfile/exists faster on Windows (GH-101324) | Michael Droettboom | 2023-02-08 | 1 | -1/+31 |
| | | | Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | gh-101000: Add os.path.splitroot() (#101002) | Barney Gale | 2023-01-27 | 1 | -43/+95 |
| | | | | Co-authored-by: Eryk Sun <eryksun@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-96290: Support partial/invalid UNC drives in ntpath.normpath() and ↵ | Barney Gale | 2023-01-12 | 1 | -8/+25 |
| | | | | | | | splitdrive() (GH-100351) This brings the Python implementation of `ntpath.normpath()` in line with the C implementation added in 99fcf15 Co-authored-by: Eryk Sun <eryksun@gmail.com> | ||||
* | gh-99547: Add isjunction methods for checking if a path is a junction (GH-99548) | Charles Machalow | 2022-11-22 | 1 | -0/+17 |
| | |||||
* | gh-81790: support "UNC" device paths in `ntpath.splitdrive()` (GH-91882) | Barney Gale | 2022-06-10 | 1 | -0/+25 |
| | |||||
* | bpo-42658: Use LCMapStringEx in ntpath.normcase to match OS behaviour for ↵ | AN Long | 2022-06-06 | 1 | -0/+2 |
| | | | | case-folding (GH-32010) | ||||
* | bpo-40280: Skip more tests on Emscripten (GH-31947) | Christian Heimes | 2022-03-17 | 1 | -1/+2 |
| | | | | | | - lchmod, lchown are not fully implemented - skip umask tests - cannot fstat unlinked or renamed files yet - ignore musl libc issues that affect Emscripten | ||||
* | bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571) | neonene | 2022-01-13 | 1 | -0/+34 |
| | | | This makes ntpath.abspath()/getpath_abspath() follow normpath(), since some WinAPIs such as PathCchSkipRoot() require backslashed paths. | ||||
* | bpo-46208: Fix normalization of relative paths in ↵ | neonene | 2022-01-06 | 1 | -0/+9 |
| | | | | _Py_normpath()/os.path.normpath (GH-30362) | ||||
* | bpo-45582: Port getpath[p].c to Python (GH-29041) | Steve Dower | 2021-12-03 | 1 | -2/+3 |
| | | | | | The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms. | ||||
* | bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path ↵ | Barney Gale | 2021-04-28 | 1 | -2/+58 |
| | | | | | (GH-25264) Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation. | ||||
* | bpo-39899: os.path.expanduser(): don't guess other Windows users' home ↵ | Barney Gale | 2021-04-07 | 1 | -15/+28 |
| | | | | | | | directories if the basename of the current user's home directory doesn't match their username. (GH-18841) This makes `ntpath.expanduser()` match `pathlib.Path.expanduser()` in this regard, and is more in line with `posixpath.expanduser()`'s cautious approach. Also remove the near-duplicate implementation of `expanduser()` in pathlib, and by doing so fix a bug where KeyError could be raised when expanding another user's home directory. | ||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21764) | Hai Shi | 2020-08-07 | 1 | -6/+6 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21743) | Hai Shi | 2020-08-06 | 1 | -3/+3 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21448) | Hai Shi | 2020-08-03 | 1 | -38/+40 |
| | |||||
* | bpo-41069: Make TESTFN and the CWD for tests containing non-ascii ↵ | Serhiy Storchaka | 2020-06-25 | 1 | -1/+1 |
| | | | | characters. (GH-21035) | ||||
* | bpo-38453: Ensure correct short path is obtained for test (GH-17184) | Steve Dower | 2019-11-16 | 1 | -3/+21 |
| | |||||
* | bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967) | Steve Dower | 2019-11-15 | 1 | -12/+40 |
| | | | | | Ensure isabs() is always True for \\?\ prefixed paths Avoid unnecessary usage of readlink() to avoid resolving broken links incorrectly Ensure shutil tests run in test directory | ||||
* | bpo-38355: Fix ntpath.realpath failing on sys.executable (GH-16551) | Steve Dower | 2019-10-03 | 1 | -7/+5 |
| | |||||
* | bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899) | Steve Dower | 2019-09-11 | 1 | -0/+4 |
| | |||||
* | bpo-38087: Fix case sensitivity in test_pathlib and test_ntpath (GH-15850) | Steve Dower | 2019-09-10 | 1 | -91/+105 |
| | |||||
* | bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵ | Steve Dower | 2019-08-21 | 1 | -2/+2 |
| | | | | (GH-15369) | ||||
* | bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) | Steve Dower | 2019-08-21 | 1 | -3/+195 |
| | |||||
* | bpo-37393: Fix deprecation warnings in test_ntpath. (GH-14357) | Zackery Spytz | 2019-06-25 | 1 | -2/+0 |
| | | | | eval() was being called an extra time without a filter for deprecation warnings. | ||||
* | bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282) | Anthony Sottile | 2019-03-12 | 1 | -10/+11 |
| | |||||
* | bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082) | Tim Graham | 2018-10-25 | 1 | -0/+2 |
| | | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402. | ||||
* | bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544) | Franz Wöllert | 2018-07-29 | 1 | -0/+4 |
| | |||||
* | bpo-34195: Fix case-sensitive comparison in test_nt_helpers (GH-8448) | Tim Golden | 2018-07-25 | 1 | -5/+11 |
| | | | | | * Fix case-sensitive comparison test_nt_helpers assumed that two versions of a Windows path could be compared case-sensitively. This is not the case, and the difference can be triggered (apparently) by running the test on a path somewhere below a Junction. | ||||
* | bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930) | Serhiy Storchaka | 2018-03-02 | 1 | -12/+3 |
| | |||||
* | bpo-32556: nt._getfinalpathname, nt._getvolumepathname and nt._getdiskusage ↵ | Steve Dower | 2018-02-22 | 1 | -10/+36 |
| | | | | now correctly convert from bytes. (GH-5761) | ||||
* | Issue #29197: Removed deprecated function ntpath.splitunc(). | Serhiy Storchaka | 2017-01-13 | 1 | -24/+1 |
| | |||||
* | Issue #26027, #27524: Add PEP 519/__fspath__() support to os and | Brett Cannon | 2016-08-26 | 1 | -0/+83 |
| | | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c. | ||||
* | Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath. | Serhiy Storchaka | 2015-03-31 | 1 | -0/+69 |
| | | | | Based on patch by Rafik Draoui. | ||||
* | Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. | Serhiy Storchaka | 2015-03-25 | 1 | -0/+1 |
| | |||||
* | Issue #7665: Fixed tests test_ntpath and test_urllib2 when ran in the | Serhiy Storchaka | 2015-01-26 | 1 | -3/+4 |
| | | | | directory containing a backslash. | ||||
* | Issue #21493: Added test for ntpath.expanduser(). Original patch by | Serhiy Storchaka | 2014-05-28 | 1 | -0/+35 |
| | | | | Claudiu Popa. | ||||
* | Issue #6815: os.path.expandvars() now supports non-ASCII environment | Serhiy Storchaka | 2014-02-13 | 1 | -3/+24 |
|\ | | | | | | | variables names and values. | ||||
| * | Issue #6815: os.path.expandvars() now supports non-ASCII environment | Serhiy Storchaka | 2014-02-13 | 1 | -3/+24 |
| | | | | | | | | variables names and values. | ||||
* | | Issue #19456: ntpath.join() now joins relative paths correctly when a drive | Serhiy Storchaka | 2014-01-27 | 1 | -33/+36 |
|\ \ | |/ | | | | | is present. | ||||
| * | Issue #19456: ntpath.join() now joins relative paths correctly when a drive | Serhiy Storchaka | 2014-01-27 | 1 | -32/+35 |
| | | | | | | | | is present. | ||||
* | | Issue #19912: Fixed numerous bugs in ntpath.splitunc(). | Serhiy Storchaka | 2013-12-16 | 1 | -0/+23 |
|\ \ | |/ | | | | | | | | | | | | | * splitunc() no more return illegal result for paths with redundant slashes. * splitunc() now correctly processes the 'İ' character (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE). * Deprecation warnings now emitted for every use of splitunc(). * Added tests for splitunc(). |