summaryrefslogtreecommitdiffstats
path: root/Lib/ntpath.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-38453: Ensure ntpath.realpath correctly resolves relative paths (GH-16967)Steve Dower2019-11-151-8/+41
| | | | | 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 Dower2019-10-031-11/+9
|
* bpo-38081: Add more non-fatal error codes for ntpath.realpath (GH-16156)Steve Dower2019-09-161-7/+34
|
* bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899)Steve Dower2019-09-111-6/+7
|
* bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes ↵Steve Dower2019-08-211-3/+8
| | | | (GH-15369)
* bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)Steve Dower2019-08-211-19/+88
|
* bpo-30427: eliminate redundant type checks in os.path.normcase() (GH-1712)Wolfgang Maier2019-03-281-10/+4
| | | https://bugs.python.org/issue30427
* bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)Anthony Sottile2019-03-121-3/+1
|
* bpo-31047: Fix ntpath.abspath to trim ending separator (GH-10082)Tim Graham2018-10-251-1/+1
| | | Regression in b0bf51b32240369ccb736dc32ff82bb96f375402.
* bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵Serhiy Storchaka2018-09-181-3/+3
| | | | | | | | | | to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level.
* bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544)Franz Wöllert2018-07-291-22/+20
|
* bpo-31802: Fix importing native path module before importing os. (#4017)Serhiy Storchaka2018-01-071-11/+12
|
* Issue #29197: Removed deprecated function ntpath.splitunc().Serhiy Storchaka2017-01-131-23/+1
|
* Issue #27355: Removed support for Windows CE. It was never finished,Larry Hastings2016-09-051-2/+0
| | | | 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-2/+16
| | | | | | os.path. Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation, code comments, and a debugging messages.
* Issue #23780: Improved error message in os.path.join() with single argument.Serhiy Storchaka2015-05-191-0/+2
| | | | Idea by R. David Murray.
* Issue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath.Serhiy Storchaka2015-03-311-1/+62
| | | | Based on patch by Rafik Draoui.
* Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-251-1/+1
|\
| * Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes.Serhiy Storchaka2015-03-251-1/+1
| |
* | Fixed tests on Windows for issue #21883.Serhiy Storchaka2014-10-041-1/+1
| |
* | Issue #21883: os.path.join() and os.path.relpath() now raise a TypeError withSerhiy Storchaka2014-10-041-44/+52
| | | | | | | | more helpful error message for unsupported or mismatched types of arguments.
* | Issue #15275: Clean up and speed up the ntpath module.Serhiy Storchaka2014-07-231-93/+77
|/
* Issue #6815: os.path.expandvars() now supports non-ASCII environmentSerhiy Storchaka2014-02-131-29/+31
|\ | | | | | | variables names and values.
| * Issue #6815: os.path.expandvars() now supports non-ASCII environmentSerhiy Storchaka2014-02-131-29/+31
| | | | | | | | variables names and values.
* | Issue #19456: ntpath.join() now joins relative paths correctly when a driveSerhiy Storchaka2014-01-271-76/+30
|\ \ | |/ | | | | is present.
| * Issue #19456: ntpath.join() now joins relative paths correctly when a driveSerhiy Storchaka2014-01-271-76/+30
| | | | | | | | is present.
* | Issue #19912: Fixed numerous bugs in ntpath.splitunc().Serhiy Storchaka2013-12-161-20/+6
|\ \ | |/ | | | | | | | | | | | | * 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().
| * Issue #19912: Fixed numerous bugs in ntpath.splitunc().Serhiy Storchaka2013-12-161-20/+6
| | | | | | | | | | | | | | | | * 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().
* | Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' characterSerhiy Storchaka2013-12-161-1/+1
|\ \ | |/ | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
| * Issue #19911: ntpath.splitdrive() now correctly processes the 'İ' characterSerhiy Storchaka2013-12-161-1/+1
| | | | | | | | (U+0130, LATIN CAPITAL LETTER I WITH DOT ABOVE).
* | Issue #9035: os.path.ismount now recognises volumes mounted belowTim Golden2013-08-011-5/+24
| | | | | | | | a drive root on Windows. Original patch by Atsuo Ishimoto.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | | | | | ModuleNotFoundError.
* | Fix #16788. Add samestat to Lib/ntpath.pyBrian Curtin2012-12-261-1/+1
| |
* | Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.Brian Curtin2012-12-261-17/+0
| | | | | | | | | | | | By setting the st_dev attribute, we can then remove some Windows-specific code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py so all platforms share the same implementation.
* | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-2/+2
| | | | | | | | Patch by Serhiy Storchaka.
* | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-2/+2
| |
* | #16135: Removal of OS/2 support (Remove OS2 and OS/2 references)Jesus Cea2012-10-051-5/+1
|/
* Correction to 88e318166eaf - Issue #11583Brian Curtin2011-06-091-5/+3
| | | | | | Rather than wrapping the C _isdir function in a Python function, just import the C _isdir function directly. Additionally, add in the docstring which was left out.
* Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat.Brian Curtin2011-06-081-0/+13
| | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time.
* ntpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same ↵Ronald Oussoren2011-05-061-1/+1
| | | | | | file on Windows XP. Noticed while researching a buildbot failure due to a patch for issue #10684.
* #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
| * Merged revisions 85689 via svnmerge fromHirokazu Yamamoto2010-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85689 | hirokazu.yamamoto | 2010-10-18 21:13:18 +0900 | 3 lines Issue #5117: Case normalization was needed on ntpath.relpath(). And fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath) ........
| * Merged revisions 83065 via svnmerge fromGeorg Brandl2010-08-011-22/+22
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r83065 | georg.brandl | 2010-07-23 10:46:35 +0200 (Fr, 23 Jul 2010) | 1 line Use augassign. ........
| * Merged revisions 83352,83355-83358,83362,83366,83368-83369 via svnmerge fromGeorg Brandl2010-08-011-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r83352 | georg.brandl | 2010-07-31 20:11:07 +0200 (Sa, 31 Jul 2010) | 1 line #9440: Remove borderline test case that fails based on unpredictable conditions such as compiler flags. ........ r83355 | georg.brandl | 2010-07-31 21:17:11 +0200 (Sa, 31 Jul 2010) | 1 line Fix bad merge: test_support -> support. ........ r83356 | georg.brandl | 2010-07-31 21:29:15 +0200 (Sa, 31 Jul 2010) | 1 line Remove trailing whitespace. ........ r83357 | georg.brandl | 2010-07-31 21:59:55 +0200 (Sa, 31 Jul 2010) | 1 line #5778: document that sys.version can contain a newline. ........ r83358 | georg.brandl | 2010-07-31 22:05:31 +0200 (Sa, 31 Jul 2010) | 1 line #9442: do not document a specific format for sys.version; rather refer to version_info and the platform module. ........ r83362 | georg.brandl | 2010-07-31 23:12:15 +0200 (Sa, 31 Jul 2010) | 1 line #8910: add a file explaining why Lib/test/data is there. ........ r83366 | georg.brandl | 2010-07-31 23:26:40 +0200 (Sa, 31 Jul 2010) | 1 line There always is a False and True now. ........ r83368 | georg.brandl | 2010-07-31 23:40:15 +0200 (Sa, 31 Jul 2010) | 1 line #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details. ........ r83369 | georg.brandl | 2010-07-31 23:41:42 +0200 (Sa, 31 Jul 2010) | 1 line Fix "Berkeley" name. ........
| * Note: only the relevant parts of r79474 are merged.Florent Xicluna2010-03-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged revisions 78793,78798-78799,78977,79095,79196,79474 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78793 | florent.xicluna | 2010-03-08 13:25:35 +0100 (lun, 08 mar 2010) | 2 lines Fix macpath to deal with bytes ................ r78798 | florent.xicluna | 2010-03-08 14:32:17 +0100 (lun, 08 mar 2010) | 18 lines Merged revisions 78777,78787,78790 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78777 | florent.xicluna | 2010-03-08 00:49:03 +0100 (lun, 08 mar 2010) | 4 lines Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717. It should fix transient failures on test_multiprocessing. ........ r78787 | florent.xicluna | 2010-03-08 08:21:16 +0100 (lun, 08 mar 2010) | 2 lines Don't fail on a debug() statement, if the worker PID is (still) None. ........ r78790 | florent.xicluna | 2010-03-08 12:01:39 +0100 (lun, 08 mar 2010) | 2 lines On finalize, don't try to join not started process. ........ ................ r78799 | florent.xicluna | 2010-03-08 15:44:41 +0100 (lun, 08 mar 2010) | 2 lines Fix ntpath abspath to deal with bytes. ................ r78977 | florent.xicluna | 2010-03-15 14:14:39 +0100 (lun, 15 mar 2010) | 2 lines Fix \xhh specs, #1889. (an oversight of r60193, r60210). ................ r79095 | florent.xicluna | 2010-03-19 15:40:31 +0100 (ven, 19 mar 2010) | 2 lines Rename test.test_support to test.support for 3.x. ................ r79196 | florent.xicluna | 2010-03-21 13:29:50 +0100 (dim, 21 mar 2010) | 9 lines Merged revisions 79195 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79195 | florent.xicluna | 2010-03-21 13:27:20 +0100 (dim, 21 mar 2010) | 2 lines Issue #8179: Fix macpath.realpath() on a non-existing path. ........ ................ r79474 | florent.xicluna | 2010-03-28 01:25:02 +0100 (dim, 28 mar 2010) | 33 lines Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........ ................
* | Issue #5117: Case normalization was needed on ntpath.relpath(). AndHirokazu Yamamoto2010-10-181-2/+2
| | | | | | | | | | fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath)
* | Fix #9790 again. Rather than handle NotImplementedError at runtime asBrian Curtin2010-09-241-4/+9
| | | | | | | | | | before, only attempt the import where nt._getfinalpathname could actually work, i.e., Windows Vista and beyond.