Commit Graph

104 Commits

Author SHA1 Message Date
R David Murray
8578316697 # 2466: ismount now recognizes mount points user can't access.
Patch by Robin Roth, backport by Xiang Zhang.
2016-08-23 12:30:28 -04:00
Martin Panter
bf02d18844 Fix typos in code comment and documentation 2016-04-16 09:28:57 +00:00
Serhiy Storchaka
2bd8b22b6d Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars().  Fixed all os.path implementations on
unicode-disabled builds.
2015-02-13 12:02:05 +02:00
Serhiy Storchaka
2ac9d31108 Issue #6815: os.path.expandvars() now supports non-ASCII Unicode environment
variables names and values.
2014-02-19 23:27:37 +02:00
Serhiy Storchaka
142d2bc3f1 Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). 2013-02-18 12:20:44 +02:00
Serhiy Storchaka
0dd3d309ab Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms. 2013-02-10 12:21:49 +02:00
R David Murray
ac9b5c67d3 #15342: Add clarifying sentence to posixpath.join docstring.
This sentence appears as a clarifying note in the HTML docs, and seems
worth having in the docstring since it covers a very common use case
that isn't otherwise obvious.  Thanks to Yongzhi Pan for the suggestion.
2012-07-21 14:37:29 -04:00
Martin v. Löwis
ed11a5d018 Issue #8767: Restore building with --disable-unicode.
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Jesus Cea
f2011e3e49 Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/' 2012-05-10 05:01:11 +02:00
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