1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-19 02:17:38 +03:00

use stderr

This commit is contained in:
A_D 2021-06-06 11:53:25 +02:00
parent ce8fea9f1a
commit b19f956219
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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):