From e65d0faa0fc0d34a574b3376fb855b079da67945 Mon Sep 17 00:00:00 2001 From: Marcus Müller <mmueller@gnuradio.org> Date: Sun, 21 Apr 2019 17:09:41 +0200 Subject: modtool/Py2k: str.maketrans('','','*&') -> replace('*','').replace('&','') This makes modtool Py2k compatible, as it seems, and probably is light on the runtime --- gr-utils/python/modtool/tools/util_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-utils/python') diff --git a/gr-utils/python/modtool/tools/util_functions.py b/gr-utils/python/modtool/tools/util_functions.py index 1c34e4d294..816c46634b 100644 --- a/gr-utils/python/modtool/tools/util_functions.py +++ b/gr-utils/python/modtool/tools/util_functions.py @@ -99,7 +99,7 @@ def strip_arg_types(string): string = strip_default_values(string) return ", ".join( [part.strip().split(' ')[-1] for part in string.split(',')] - ).translate(str.maketrans('','','*&')) + ).replace('*','').replace('&','') def strip_arg_types_grc(string): """" Strip the argument types from a list of arguments for GRC make tag. -- cgit v1.2.3