From b19f956219545107f951592170972dca9850c538 Mon Sep 17 00:00:00 2001 From: A_D Date: Sun, 6 Jun 2021 11:53:25 +0200 Subject: [PATCH] use stderr --- scripts/find_localised_strings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/find_localised_strings.py b/scripts/find_localised_strings.py index de2d12c1..1957b32e 100644 --- a/scripts/find_localised_strings.py +++ b/scripts/find_localised_strings.py @@ -1,4 +1,5 @@ """Search all given paths recursively for localised string calls.""" +import sys import argparse import ast import json @@ -20,7 +21,7 @@ def get_func_name(thing: ast.AST) -> str: def get_arg(call: ast.Call) -> str: """Extract the argument string to the translate function.""" if len(call.args) > 1: - print("??? > 1 args", call.args) + print("??? > 1 args", call.args, file=sys.stderr) arg = call.args[0] if isinstance(arg, ast.Constant):