Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add Py3k warnings to os.path.walk | Benjamin Peterson | 2008-05-09 | 1 | -1/+3 |
| | |||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -1/+1 |
| | |||||
* | #1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir. | Georg Brandl | 2008-01-06 | 1 | -0/+2 |
| | | | | Reported by Jesse Towner. | ||||
* | #1696393: don't check for '.' and '..' in ntpath.walk since | Georg Brandl | 2008-01-06 | 1 | -5/+3 |
| | | | | | they aren't returned from os.listdir anymore. Reported by Michael Haggerty. | ||||
* | Bug #1688564: document os.path.join's absolute path behavior in the docstring. | Georg Brandl | 2007-08-23 | 1 | -1/+3 |
| | |||||
* | Patch 1339796: add a relpath() function to os.path. | Collin Winter | 2007-03-16 | 1 | -1/+27 |
| | |||||
* | Patch #957650: "%var%" environment variable references are now properly | Georg Brandl | 2007-03-13 | 1 | -16/+42 |
| | | | | | expanded in ntpath.expandvars(), also "~user" home directory references are recognized and handled on Windows. | ||||
* | Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). | Martin v. Löwis | 2007-03-07 | 1 | -10/+3 |
| | |||||
* | Fixed ntpath.expandvars to not replace references to non-existing | Sjoerd Mullender | 2007-01-16 | 1 | -2/+6 |
| | | | | | variables with nothing. Also added tests. This fixes bug #494589. | ||||
* | - Move functions common to all path modules into genericpath.py and have the | Jack Diederich | 2006-08-26 | 1 | -72/+5 |
| | | | | | OS speicifc path modules import them. - Have os2emxpath import common functions fron ntpath instead of using copies | ||||
* | SF bug #1473760 TempFile can hang on Windows. | Tim Peters | 2006-04-21 | 1 | -21/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | Python 2.4 changed ntpath.abspath to do an import inside the function. As a result, due to Python's import lock, anything calling abspath on Windows (directly, or indirectly like tempfile.TemporaryFile) hung when it was called from a thread spawned as a side effect of importing a module. This is a depressingly frequent problem, and deserves a more general fix. I'm settling for a micro-fix here because this specific one accounts for a report of Zope Corp's ZEO hanging on Windows, and it was an odd way to change abspath to begin with (ntpath needs a different implementation depending on whether we're actually running on Windows, and the _obvious_ way to arrange for that is not to bury a possibly-failing import _inside_ the function). Note that if/when other micro-fixes of this kind get made, the new Lib/test/threaded_import_hangers.py is a convenient place to add tests for them. | ||||
* | Bug #1266283: lexists() is not exported from os.path | Georg Brandl | 2005-08-22 | 1 | -4/+4 |
| | |||||
* | patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc. | Georg Brandl | 2005-08-03 | 1 | -8/+7 |
| | |||||
* | Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists ↵ | Johannes Gijsbers | 2004-08-30 | 1 | -1/+2 |
| | | | | in glob.glob. | ||||
* | Make ntpath compress multiple slashes between drive letter and the rest of the | Brett Cannon | 2004-07-10 | 1 | -3/+19 |
| | | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore. | ||||
* | Feature request #935915: Add os.path.devnull. | Martin v. Löwis | 2004-06-08 | 1 | -1/+2 |
| | |||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | make nt altsep forward slash - closes bug 709428 | Skip Montanaro | 2003-03-28 | 1 | -1/+1 |
| | | | | backport candidate | ||||
* | Tweak to Skip's checkin of patch 686397: | Andrew MacIntyre | 2003-02-17 | 1 | -3/+2 |
| | | | | | | - 'os2' references in ntpath.py relate to the VACPP port, not the EMX port; - the VACPP port uses the same defpath as all other ntpath.py supported platforms except 'ce'. | ||||
* | Migrate definitions of several platform-dependent path-related variables | Skip Montanaro | 2003-02-14 | 1 | -0/+16 |
| | | | | into the relevant path modules. See patch #686397. | ||||
* | Fix SF #659228, 'realpath' function missing from os.path | Neal Norwitz | 2003-01-03 | 1 | -1/+1 |
| | | | | | | | Also added realpath = abspath for os2emx, similar to windows/mac which also don't really implement realpath. Backport candidate, I think? | ||||
* | Patch #658927: Add getctime to os.path. | Martin v. Löwis | 2002-12-31 | 1 | -1/+4 |
| | | | | Document that getatime and getmtime may return floats. | ||||
* | Patch #536661: Improve performance of splitext. Add test_macpath. | Martin v. Löwis | 2002-12-12 | 1 | -14/+6 |
| | |||||
* | Don't try to access sys.getwindowsversion unless it exists (ntpath is | Tim Peters | 2002-10-09 | 1 | -1/+2 |
| | | | | | | imported on systems other than Windows, and in particular is imported by test___all__; the compile farm reported that all Linux tests failed due to this; isn't anyone in PythonDevLand running CVS on Linux?!). | ||||
* | Add os.path.supports_unicode_filenames for all platforms, | Mark Hammond | 2002-10-08 | 1 | -1/+5 |
| | | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries. | ||||
* | Replaced obsolete stat module constants with equivalent attributes | Raymond Hettinger | 2002-06-01 | 1 | -8/+5 |
| | |||||
* | SF 563203. Replaced 'has_key()' with 'in'. | Raymond Hettinger | 2002-06-01 | 1 | -4/+4 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -3/+3 |
| | |||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | Allow abspath to still do something sensisble if the nt module can not be ↵ | Mark Hammond | 2002-01-17 | 1 | -1/+11 |
| | | | | imported. | ||||
* | SF bug 478425: Change in os.path.join (ntpath.py) | Tim Peters | 2001-11-05 | 1 | -0/+6 |
| | | | | | | ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1. Impossible to guess what was ever *intended*, but since split('a\\') produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back. | ||||
* | SF bug [#469732] os.path.walk docstring inconsistent. | Tim Peters | 2001-10-10 | 1 | -4/+13 |
| | | | | | We have 5 implementations of walk(), and 5 different docstrings. Combined 'em. Let's see how long it takes before they're all different again! | ||||
* | SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks: | Guido van Rossum | 2001-09-17 | 1 | -0/+3 |
| | | | | | | | | | | | | | | Once upon a time, I put together a little function that tries to find the canonical filename for a given pathname on POSIX. I've finally gotten around to turning it into a proper patch with documentation. On non-POSIX, I made it an alias for 'abspath', as that's the behavior on POSIX when no symlinks are encountered in the path. Example: >>> os.path.realpath('/usr/bin/X11/X') '/usr/X11R6/bin/X' | ||||
* | SF bug #456621: normpath on Win32 not collapsing c:\\.. | Tim Peters | 2001-08-30 | 1 | -8/+11 |
| | | | | | | I actually rewrote normpath quite a bit: it had no test cases, and as soon as I starting writing some I found several cases that didn't make sense. | ||||
* | One more crack at join(): stop trying to pretend this isn't a mass of | Tim Peters | 2001-07-27 | 1 | -16/+40 |
| | | | | special cases. test_pkg works again on Windows. | ||||
* | Change ntpath.join() so that join("d:/", "/whatever") returns | Tim Peters | 2001-07-26 | 1 | -5/+6 |
| | | | | | | | d:/whatever instead of /whatever. While I'm afraid changing isabs() to be *consistent* with this would break lots of code, it makes best sense for join() to do it this way. Thanks to Alex Martelli for pushing back on this one! | ||||
* | Use string.ascii_letters instead of string.letters (SF bug #226706). | Fred Drake | 2001-07-20 | 1 | -1/+1 |
| | |||||
* | SF bug #44271: os.path.expanduser problem w/o HOME set. | Tim Peters | 2001-07-19 | 1 | -6/+16 |
| | | | | | | | This is a Windows-specific glitch that's really due to that, e.g., ntpath.join("c:", "/abc") returned "/abc" instead of "c:/abc". Made join smarter. Bugfix candidate. | ||||
* | abspath(): Fix inconsistent indentation. | Fred Drake | 2001-05-15 | 1 | -1/+1 |
| | |||||
* | Add support for Windows using "mbcs" as the default Unicode encoding when ↵ | Mark Hammond | 2001-05-13 | 1 | -13/+4 |
| | | | | dealing with the file system. As discussed on python-dev and in patch 410465. | ||||
* | added several more __all__ lists | Skip Montanaro | 2001-02-06 | 1 | -0/+4 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-01-15 | 1 | -3/+3 |
| | |||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -3/+3 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Avoid import of string module; it is only needed for expandvars(). | Fred Drake | 2000-09-28 | 1 | -22/+21 |
| | | | | | | Never assume that os.sep is for the module-specific platform; use the right separator character directly. Fix some minor style consistency nits. | ||||
* | Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yield | Tim Peters | 2000-09-19 | 1 | -1/+1 |
| | | | | "a:b", not "a:/b". Similar change was made to posixmodule.c earlier. | ||||
* | revert semantics of commonprefix to work character-by-character | Skip Montanaro | 2000-08-22 | 1 | -8/+3 |
| | |||||
* | Fix for Bug #110673: os.abspatth() now always returns os.getcwd() on ↵ | Mark Hammond | 2000-08-14 | 1 | -4/+7 |
| | | | | Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName()) | ||||
* | * split on / or \ | Skip Montanaro | 2000-07-17 | 1 | -3/+5 |
| | | | | * case insensitive comparison | ||||
* | forgot to change copy.copy(m) to m[:] | Skip Montanaro | 2000-07-13 | 1 | -2/+2 |
| | |||||
* | fixed semantics of commonprefix to work by path elements instead of | Skip Montanaro | 2000-07-12 | 1 | -4/+7 |
| | | | | characters. |