summaryrefslogtreecommitdiffstats
path: root/platform_utils.py
diff options
context:
space:
mode:
authorKaiyi Li <kaiyili@google.com>2024-03-27 07:21:43 -0700
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-03-27 17:13:58 +0000
commit46819a78a1b34f30edba209e15d9922f84f11c09 (patch)
treef241fe38c47f75bd1b330b5d59f95bb0826aaa86 /platform_utils.py
parent159389f0da91e893962923f4aca951f8e6d9a451 (diff)
downloadgit-repo-46819a78a1b34f30edba209e15d9922f84f11c09.tar.gz
Remove platform_utils.realpath
... since it's just a simple wrapper of os.path.realpath now. Change-Id: I7433e5fe09c64b130f06e2541151dce1961772c9 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/416637 Tested-by: Kaiyi Li <kaiyili@google.com> Reviewed-by: Greg Edelston <gredelston@google.com> Commit-Queue: Kaiyi Li <kaiyili@google.com>
Diffstat (limited to 'platform_utils.py')
-rw-r--r--platform_utils.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/platform_utils.py b/platform_utils.py
index 29060099..e20198ee 100644
--- a/platform_utils.py
+++ b/platform_utils.py
@@ -251,12 +251,3 @@ def readlink(path):
251 return platform_utils_win32.readlink(_makelongpath(path)) 251 return platform_utils_win32.readlink(_makelongpath(path))
252 else: 252 else:
253 return os.readlink(path) 253 return os.readlink(path)
254
255
256def realpath(path):
257 """Return the canonical path of the specified filename, eliminating
258 any symbolic links encountered in the path.
259
260 Availability: Windows, Unix.
261 """
262 return os.path.realpath(path)