fix review idea

This commit is contained in:
Manjusaka 2020-03-28 20:02:39 +08:00
parent 3bab170683
commit 8887317aca
No known key found for this signature in database
GPG Key ID: 878F445D9C6CE65E
1 changed files with 1 additions and 2 deletions

View File

@ -445,8 +445,7 @@ class _NormalAccessor(_Accessor):
# Helper for resolve() # Helper for resolve()
if hasattr(os, "readlink"): if hasattr(os, "readlink"):
def readlink(self, path): readlink = os.readlink
return os.readlink(path)
else: else:
def readlink(self, path): def readlink(self, path):
raise NotImplementedError("readlink() not available on this system") raise NotImplementedError("readlink() not available on this system")