tor-browser

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

commit 4a8e9c0b1b6924f734c90486790a7c011faeda84
parent c377c528969e6acbe9b800a4d189710ae6ace550
Author: Alex Hochheiden <ahochheiden@mozilla.com>
Date:   Wed, 15 Oct 2025 05:42:37 +0000

Bug 1993797 - Fix AST parsing in DecoratorVisitor for Python 3.14 r=firefox-build-system-reviewers,glandium

This is necessary due to the `ast.Str` removal in 3.14.

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

Diffstat:
Mpython/mach/mach/command_util.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/mach/mach/command_util.py b/python/mach/mach/command_util.py @@ -307,7 +307,7 @@ class DecoratorVisitor(ast.NodeVisitor): # We only care about these 3 kwargs, so we can safely skip the rest continue - kwarg_dict[keyword.arg] = getattr(keyword.value, "s", "") + kwarg_dict[keyword.arg] = keyword.value.value command = kwarg_dict.pop("command") self.results.setdefault(command, {})