mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
dev-python/mypy: remove unused patch.
Closes: https://github.com/gentoo/gentoo/pull/2326 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
This commit is contained in:
committed by
Patrice Clement
parent
510e955cf0
commit
d76136f8ca
@@ -1,20 +0,0 @@
|
||||
diff --git a/scripts/mypy b/scripts/mypy
|
||||
index e758f1f..5a06146 100755
|
||||
--- a/scripts/mypy
|
||||
+++ b/scripts/mypy
|
||||
@@ -45,14 +45,7 @@ def find_bin_directory() -> str:
|
||||
|
||||
This is used by build to find stubs and other data files.
|
||||
"""
|
||||
- script = __file__
|
||||
- # Follow up to 5 symbolic links (cap to avoid cycles).
|
||||
- for i in range(5):
|
||||
- if os.path.islink(script):
|
||||
- script = readlinkabs(script)
|
||||
- else:
|
||||
- break
|
||||
- return os.path.dirname(script)
|
||||
+ return os.path.dirname(shutil.which('mypy'))
|
||||
|
||||
|
||||
def readlinkabs(link: str) -> str:
|
||||
Reference in New Issue
Block a user