mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Back out 7e9605697dfc, 2e3c31ab586a, 759b2cecc289.
These added a path attribute to pathlib.Path objects, and docs. Instead, we're going to use PEP 519. (Starting in the 3.4 branch and merging forward from there since that's what I did originally.)
This commit is contained in:
parent
2a86122759
commit
3d4d01f614
4 changed files with 0 additions and 58 deletions
|
@ -648,13 +648,6 @@ class PurePath(object):
|
|||
self._parts) or '.'
|
||||
return self._str
|
||||
|
||||
@property
|
||||
def path(self):
|
||||
try:
|
||||
return self._str
|
||||
except AttributeError:
|
||||
return str(self)
|
||||
|
||||
def as_posix(self):
|
||||
"""Return the string representation of the path with forward (/)
|
||||
slashes."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue