summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 83421,83424 via svnmerge fromGeorg Brandl2010-08-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/release27-maint ................ r83421 | georg.brandl | 2010-08-01 20:52:52 +0200 (So, 01 Aug 2010) | 25 lines Merged revisions 83393,83396,83398,83405,83408 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83393 | georg.brandl | 2010-08-01 10:35:29 +0200 (So, 01 Aug 2010) | 1 line #1690103: fix initial namespace for code run with trace.main(). ........ r83396 | georg.brandl | 2010-08-01 10:52:32 +0200 (So, 01 Aug 2010) | 1 line #4810: document "--" option separator in timeit help. ........ r83398 | georg.brandl | 2010-08-01 11:06:34 +0200 (So, 01 Aug 2010) | 1 line #8826: the "expires" attribute value is a date string with spaces, but apparently not all user-agents put it in quotes. Handle that as a special case. ........ r83405 | georg.brandl | 2010-08-01 16:38:17 +0200 (So, 01 Aug 2010) | 1 line #4943: do not try to include drive letters (and colons) when looking for a probably module name. ........ r83408 | georg.brandl | 2010-08-01 17:30:56 +0200 (So, 01 Aug 2010) | 1 line #5551: symbolic links never can be mount points. Fixes the fix for #1713. ........ ................ r83424 | georg.brandl | 2010-08-01 21:02:09 +0200 (So, 01 Aug 2010) | 29 lines Merged revisions 83385-83389,83391 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83385 | georg.brandl | 2010-08-01 08:42:45 +0200 (So, 01 Aug 2010) | 1 line #8773: mailbox.py does not need to be executable. ........ r83386 | georg.brandl | 2010-08-01 08:44:46 +0200 (So, 01 Aug 2010) | 1 line #8768: name test method properly so that it gets executed. ........ r83387 | georg.brandl | 2010-08-01 08:53:28 +0200 (So, 01 Aug 2010) | 1 line #8735: better explain semantics of *values* argument for parse(). ........ r83388 | georg.brandl | 2010-08-01 09:48:43 +0200 (So, 01 Aug 2010) | 1 line #7395: fix traceback in do_add() when no stats are loaded. Apply same fix for do_sort() and do_reverse(). ........ r83389 | georg.brandl | 2010-08-01 09:57:47 +0200 (So, 01 Aug 2010) | 1 line Small improvements to pstats browser: do not crash on reading invalid file, and actually do a reload when executing "read" as intended. ........ r83391 | georg.brandl | 2010-08-01 10:10:08 +0200 (So, 01 Aug 2010) | 1 line Add another news entry. ........ ................
* Merged revisions 78247 via svnmerge fromEzio Melotti2010-02-201-1/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78247 | ezio.melotti | 2010-02-20 10:09:39 +0200 (Sat, 20 Feb 2010) | 1 line #3426: os.path.abspath now returns unicode when its arg is unicode. ........
* Merged revisions 77442 via svnmerge fromEzio Melotti2010-01-121-4/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77442 | ezio.melotti | 2010-01-12 05:32:05 +0200 (Tue, 12 Jan 2010) | 1 line #5827: make sure that normpath preserves unicode ........
* Merged revisions 72458 via svnmerge fromPhilip Jenvey2009-05-081-1/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72458 | philip.jenvey | 2009-05-07 19:28:39 -0700 (Thu, 07 May 2009) | 2 lines #4351: more appropriate DeprecationWarning stacklevels ........
* Merged revisions ↵Georg Brandl2009-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71058,71149-71150,71212,71214-71216,71222,71225,71234,71237-71238,71240-71241,71243,71249,71251 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71058 | georg.brandl | 2009-04-02 20:09:04 +0200 (Do, 02 Apr 2009) | 3 lines PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject call on hitting the recursion limit into just assigning it to the arguments provided. ........ r71149 | georg.brandl | 2009-04-04 15:42:39 +0200 (Sa, 04 Apr 2009) | 1 line #5642: clarify map() compatibility to the builtin. ........ r71150 | georg.brandl | 2009-04-04 15:45:49 +0200 (Sa, 04 Apr 2009) | 1 line #5601: clarify that webbrowser is not meant for file names. ........ r71212 | georg.brandl | 2009-04-05 12:24:20 +0200 (So, 05 Apr 2009) | 1 line #1742837: expand HTTP server docs, and fix SocketServer ones to document methods as methods, not functions. ........ r71214 | georg.brandl | 2009-04-05 12:29:57 +0200 (So, 05 Apr 2009) | 1 line Normalize spelling of Mac OS X. ........ r71215 | georg.brandl | 2009-04-05 12:32:26 +0200 (So, 05 Apr 2009) | 1 line Avoid sure signs of a diseased mind. ........ r71216 | georg.brandl | 2009-04-05 12:41:02 +0200 (So, 05 Apr 2009) | 1 line #1718017: document the relation of os.path and the posixpath, ntpath etc. modules better. ........ r71222 | georg.brandl | 2009-04-05 13:07:14 +0200 (So, 05 Apr 2009) | 1 line #5615: make it possible to configure --without-threads again. ........ r71225 | georg.brandl | 2009-04-05 13:54:07 +0200 (So, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 15:16:35 +0200 (So, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71237 | georg.brandl | 2009-04-05 16:24:52 +0200 (So, 05 Apr 2009) | 1 line #1326077: fix traceback formatting of SyntaxErrors. This fixes two differences with formatting coming from Python: a) the reproduction of location details in the error message if no line text is given, b) the prefixing of the last line by one space. ........ r71238 | georg.brandl | 2009-04-05 16:25:41 +0200 (So, 05 Apr 2009) | 1 line Add NEWS entry for r71237. ........ r71240 | georg.brandl | 2009-04-05 16:40:06 +0200 (So, 05 Apr 2009) | 1 line #5370: doc update about unpickling objects with custom __getattr__ etc. methods. ........ r71241 | georg.brandl | 2009-04-05 16:48:49 +0200 (So, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 17:14:29 +0200 (So, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 18:30:43 +0200 (So, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 19:17:42 +0200 (So, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........
* Add Py3k warnings to os.path.walkBenjamin Peterson2008-05-091-1/+2
|
* #1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.Georg Brandl2008-01-061-0/+2
| | | | Reported by Jesse Towner.
* Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.Christian Heimes2008-01-041-2/+2
|
* Bug #1688564: document os.path.join's absolute path behavior in the docstring.Georg Brandl2007-08-231-1/+3
|
* Whitespace normalization. Ugh, we really need to do this more often.Neal Norwitz2007-04-251-2/+2
| | | | You might want to review this change as it's my first time. Be gentle. :-)
* Patch 1339796: add a relpath() function to os.path.Collin Winter2007-03-161-1/+16
|
* Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').Martin v. Löwis2007-03-071-8/+3
|
* Bug #1560179: speed up posixpath.(dir|base)nameGeorg Brandl2006-10-121-4/+9
|
* Bug #1566602: correct failure of posixpath unittest when $HOME endsGeorg Brandl2006-09-301-2/+1
| | | | with a slash.
* - Move functions common to all path modules into genericpath.py and have theJack Diederich2006-08-261-70/+1
| | | | | OS speicifc path modules import them. - Have os2emxpath import common functions fron ntpath instead of using copies
* Bug #1266283: lexists() is not exported from os.pathGeorg Brandl2005-08-221-2/+2
|
* Bug #1213894: os.path.realpath didn't resolve symlinks that were the firstGeorg Brandl2005-06-031-1/+1
| | | | component of the path.
* Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists ↵Johannes Gijsbers2004-08-301-0/+11
| | | | in glob.glob.
* Whitespace normalization.Tim Peters2004-08-201-3/+3
|
* bug #990669: os.path.realpath() will resolve symlinks before normalizing theJohannes Gijsbers2004-08-141-7/+9
| | | | | | | | path, as normalizing the path may alter the meaning of the path if it contains symlinks. Also add tests for infinite symlink loops and parent symlinks that need to be resolved.
* Use isabs() in conditional, not abspathAndrew M. Kuchling2004-08-021-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Remove tabs introduced in last commit.Brett Cannon2004-07-111-4/+4
|
* posixpath.realpath() now detects symlink loops and returns the path just beforeBrett Cannon2004-07-101-6/+30
| | | | | | the loop starts. Closes bug #930024. Thanks AM Kuchling.
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-1/+2
|
* fix various descriptions of "ctime"Fred Drake2004-05-121-1/+1
| | | | (closes SF patch #870287)
* SF Patch 681780: Faster commonprefix (OS independent)Raymond Hettinger2003-12-311-10/+7
| | | | | | | Improved based on discussions at: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252177 http://groups.google.com/groups?th=fc7b54f11af6b24e&seekm=bss2so$om$00$1@news.t-online.com
* SF patch #834015: Remove imports of unused modulesRaymond Hettinger2003-11-021-1/+0
| | | | (Contributed by George Yoshida.)
* back out the darwin supports_unicode_filenames patch; it causes deep ↵Just van Rossum2003-07-171-4/+1
| | | | problems with the tests
* [ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSXJust van Rossum2003-07-111-1/+5
|
* Use find() instead of looping over the string in expanduser().Walter Dörwald2003-06-191-4/+4
| | | | From SF patch #757058.
* Modernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),Walter Dörwald2003-06-171-15/+16
| | | | | | struct_passwd attributes and +=. From SF patch #755245.
* Migrate definitions of several platform-dependent path-related variablesSkip Montanaro2003-02-141-0/+10
| | | | into the relevant path modules. See patch #686397.
* Fix SF #659228, 'realpath' function missing from os.pathNeal Norwitz2003-01-031-1/+2
| | | | | | | 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öwis2002-12-311-1/+4
| | | | Document that getatime and getmtime may return floats.
* Patch #536661: Improve performance of splitext. Add test_macpath.Martin v. Löwis2002-12-121-14/+5
|
* Whitespace normalization.Tim Peters2002-11-091-1/+0
|
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-081-1/+4
| | | | | | 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.
* SF # 555779, import user doesn't work with CGIsNeal Norwitz2002-09-051-2/+4
|
* Remove another reference to stat.ST_MODENeal Norwitz2002-06-061-1/+1
|
* Replaced obsolete stat module constants with equivalent attributesRaymond Hettinger2002-06-011-15/+12
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+2
|
* Partial introduction of bools where appropriate.Guido van Rossum2002-04-071-4/+4
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-7/+7
|
* SF bug [#469732] os.path.walk docstring inconsistent.Tim Peters2001-10-101-4/+14
| | | | | 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!
* Whitespace normalization.Tim Peters2001-09-181-1/+1
|
* SF patch #461781 by Chris Lawrence: os.path.realpath - Resolve symlinks:Guido van Rossum2001-09-171-0/+21
| | | | | | | | | | | | | | 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'
* In walk(), don't die when os.lstat() raises os.error, e.g. because aGuido van Rossum2001-04-161-1/+4
| | | | | | | | | file was deleted by a previous call to the visitor function. This used to be the behavior in 1.5.2 and before, but a patch to avoid making two stat() calls accidentally broke this in 2.0. Moshe, this would be a good one for 2.0.1 too!
* __all__ for several more modulesSkip Montanaro2001-02-121-0/+5
|
* Whitespace normalization.Tim Peters2001-02-091-1/+1
|