tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 76033c983e8e2fcbe8dec85ef849ab7440f208b8
parent 19fd8c23cab35824ec1917a40c1c31c220b50865
Author: Alex Hochheiden <ahochheiden@mozilla.com>
Date:   Wed,  7 Jan 2026 00:30:00 +0000

Bug 2006716 - Remove unused `default_bindir()` from ruff.py r=ahal,linter-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D276899

Diffstat:
Mtools/lint/python/ruff.py | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git a/tools/lint/python/ruff.py b/tools/lint/python/ruff.py @@ -4,11 +4,9 @@ import json import os -import platform import re import signal import subprocess -import sys from pathlib import Path import toml @@ -17,15 +15,6 @@ from mozlint import result here = os.path.abspath(os.path.dirname(__file__)) -def default_bindir(): - # We use sys.prefix to find executables as that gets modified with - # virtualenv's activate_this.py, whereas sys.executable doesn't. - if platform.system() == "Windows": - return os.path.join(sys.prefix, "Scripts") - else: - return os.path.join(sys.prefix, "bin") - - def get_pyproject_excludes(pyproject_toml: Path): if not pyproject_toml.exists(): return []