diff options
author | Marcus Müller <mmueller@gnuradio.org> | 2019-04-21 17:09:41 +0200 |
---|---|---|
committer | Marcus Müller <mmueller@gnuradio.org> | 2019-04-21 17:48:55 +0200 |
commit | e65d0faa0fc0d34a574b3376fb855b079da67945 (patch) | |
tree | 4c4e981d2e038e0758200817d86296e451143322 /gr-utils/python | |
parent | 98423e289bd03efa3911fabb8e2d3d77ef02f6c9 (diff) |
modtool/Py2k: str.maketrans('','','*&') -> replace('*','').replace('&','')
This makes modtool Py2k compatible, as it seems, and probably is light
on the runtime
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/modtool/tools/util_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
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. |