Hirokazu Yamamoto
50f7d7e213
Issue #5117 : Fixed root directory related issue on posixpath.relpath() and
...
ntpath.relpath().
2010-10-18 13:55:29 +00:00
Hirokazu Yamamoto
c3937f569b
Added missing import.
2010-09-18 05:40:44 +00:00
Victor Stinner
8fc843b38e
Merged revisions 84866 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84866 | victor.stinner | 2010-09-18 01:34:26 +0200 (sam., 18 sept. 2010) | 4 lines
Issue #767645 : Set os.path.supports_unicode_filenames to True in posixpath
Previous commit changed macpath but macpath is not used anymore as os.path
........
2010-09-17 23:35:50 +00:00
Georg Brandl
78e6957cdf
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 .
........
2010-08-01 18:52:52 +00:00
Ezio Melotti
4cc80ca921
#3426 : os.path.abspath now returns unicode when its arg is unicode.
2010-02-20 08:09:39 +00:00
Georg Brandl
84fedf7f06
No need to assign the results of expressions used only for side effects.
2010-02-06 22:59:15 +00:00
Ezio Melotti
b5689de044
#5827 : make sure that normpath preserves unicode
2010-01-12 03:32:05 +00:00
Philip Jenvey
d846f1d4c2
#4351 : more appropriate DeprecationWarning stacklevels
2009-05-08 02:28:39 +00:00
Georg Brandl
3f0ef20269
#5471 : fix expanduser() for $HOME set to "/".
2009-04-05 14:48:49 +00:00
Benjamin Peterson
1763f8adb4
excellent place to use a set() #5069
2009-01-27 03:07:53 +00:00
Benjamin Peterson
0893a0a961
Add Py3k warnings to os.path.walk
2008-05-09 00:27:01 +00:00
Georg Brandl
183a084da3
#1742 : don't raise exception on os.path.relpath("a", "a"), but return os.curdir.
...
Reported by Jesse Towner.
2008-01-06 14:27:15 +00:00
Christian Heimes
0687561c94
Bug #1713 : posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
2008-01-04 13:21:07 +00:00
Georg Brandl
da5f16ab19
Bug #1688564 : document os.path.join's absolute path behavior in the docstring.
2007-08-23 21:27:57 +00:00
Neal Norwitz
0d4c06e06e
Whitespace normalization. Ugh, we really need to do this more often.
...
You might want to review this change as it's my first time. Be gentle. :-)
2007-04-25 06:30:05 +00:00
Collin Winter
6f187743ff
Patch 1339796: add a relpath() function to os.path.
2007-03-16 22:16:08 +00:00
Martin v. Löwis
05c075d629
Bug #1115886 : os.path.splitext('.cshrc') gives now ('.cshrc', '').
2007-03-07 11:04:33 +00:00
Georg Brandl
65ad043ea3
Bug #1560179 : speed up posixpath.(dir|base)name
2006-10-12 13:08:16 +00:00
Georg Brandl
8d1e5bffc1
Bug #1566602 : correct failure of posixpath unittest when $HOME ends
...
with a slash.
2006-09-30 09:13:21 +00:00
Jack Diederich
7b60464ceb
- Move functions common to all path modules into genericpath.py and have the
...
OS speicifc path modules import them.
- Have os2emxpath import common functions fron ntpath instead of using copies
2006-08-26 18:42:06 +00:00
Georg Brandl
f0de6a18bb
Bug #1266283 : lexists() is not exported from os.path
2005-08-22 18:02:59 +00:00
Georg Brandl
268e61cf74
Bug #1213894 : os.path.realpath didn't resolve symlinks that were the first
...
component of the path.
2005-06-03 14:28:50 +00:00
Johannes Gijsbers
ae882f7984
Patch #941486 : add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.
2004-08-30 10:19:56 +00:00
Tim Peters
a45cacfc1c
Whitespace normalization.
2004-08-20 03:47:14 +00:00
Johannes Gijsbers
4ec40648a5
bug #990669 : os.path.realpath() will resolve symlinks before normalizing the
...
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.
2004-08-14 15:01:53 +00:00
Andrew M. Kuchling
c75f11222c
Use isabs() in conditional, not abspath
2004-08-02 14:54:16 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Brett Cannon
dfa5d95613
Remove tabs introduced in last commit.
2004-07-11 19:16:21 +00:00
Brett Cannon
f50299c378
posixpath.realpath() now detects symlink loops and returns the path just before
...
the loop starts.
Closes bug #930024 . Thanks AM Kuchling.
2004-07-10 22:55:15 +00:00
Martin v. Löwis
bdec50f027
Feature request #935915 : Add os.path.devnull.
2004-06-08 08:29:33 +00:00
Fred Drake
1cd6e4dc38
fix various descriptions of "ctime"
...
(closes SF patch #870287 )
2004-05-12 03:51:40 +00:00
Raymond Hettinger
74bb7f03b1
SF Patch 681780: Faster commonprefix (OS independent)
...
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
2003-12-31 22:44:29 +00:00
Raymond Hettinger
cc523fc53d
SF patch #834015 : Remove imports of unused modules
...
(Contributed by George Yoshida.)
2003-11-02 09:47:05 +00:00
Just van Rossum
2d4e988c35
back out the darwin supports_unicode_filenames patch; it causes deep problems with the tests
2003-07-17 15:11:49 +00:00
Just van Rossum
c4bf893952
[ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSX
2003-07-11 07:36:49 +00:00
Walter Dörwald
a9da5ae07a
Use find() instead of looping over the string in expanduser().
...
From SF patch #757058 .
2003-06-19 10:21:14 +00:00
Walter Dörwald
77cdeaff55
Modernize Lib/posixpath.py: Use startswith(), endswith(), rstrip(),
...
struct_passwd attributes and +=.
From SF patch #755245 .
2003-06-17 13:13:40 +00:00
Skip Montanaro
117910dc44
Migrate definitions of several platform-dependent path-related variables
...
into the relevant path modules. See patch #686397 .
2003-02-14 19:35:31 +00:00
Neal Norwitz
61cdac6d3d
Fix SF #659228 , 'realpath' function missing from os.path
...
Also added realpath = abspath for os2emx, similar to windows/mac
which also don't really implement realpath.
Backport candidate, I think?
2003-01-03 18:01:57 +00:00
Martin v. Löwis
96a60e4af5
Patch #658927 : Add getctime to os.path.
...
Document that getatime and getmtime may return floats.
2002-12-31 13:11:54 +00:00
Martin v. Löwis
de3337913f
Patch #536661 : Improve performance of splitext. Add test_macpath.
2002-12-12 20:30:20 +00:00
Tim Peters
230a60c6ec
Whitespace normalization.
2002-11-09 05:08:07 +00:00
Mark Hammond
8696ebcd28
Add os.path.supports_unicode_filenames for all platforms,
...
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.
2002-10-08 02:44:31 +00:00
Neal Norwitz
609ba81cdb
SF # 555779, import user doesn't work with CGIs
2002-09-05 21:08:25 +00:00
Neal Norwitz
ec7cf1382b
Remove another reference to stat.ST_MODE
2002-06-06 18:16:14 +00:00
Raymond Hettinger
32200aeac6
Replaced obsolete stat module constants with equivalent attributes
2002-06-01 19:51:15 +00:00
Raymond Hettinger
54f0222547
SF 563203. Replaced 'has_key()' with 'in'.
2002-06-01 14:18:47 +00:00
Guido van Rossum
8ca162f417
Partial introduction of bools where appropriate.
2002-04-07 06:36:23 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Tim Peters
cf5e6a4a5d
SF bug [ #469732 ] os.path.walk docstring inconsistent.
...
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!
2001-10-10 04:16:20 +00:00