if _getfinalpathname is not None:
- # Means fallback on abs
+ # Means fallback on abs
def _ext_to_normal(self, s):
return getattr(self._stat, name)
return super(Path, self).__getattribute__(name)
"""Return an absolute version of this path. This function works
even if the path doesn't point to anything.
# No symlink resolution => for consistency, raise an error if
# the path doesn't exist or is forbidden
- s = str(self.abs
+ s = str(self.abs())
# Now we have no symlinks in the path, it's safe to normalize it.
normed = self._flavour.pathmod.normpath(s)
obj = self._from_parts((normed,), init=False)