From: Bruno Haible Date: Fri, 29 Jul 2022 09:14:27 +0000 (+0200) Subject: gnulib-tool.py: Fix warning from Python 3.10.4. X-Git-Tag: v1.0~2224 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=67e61c85b2190a7da0d1b2baf56a72f3b0ad1122;p=gnulib.git gnulib-tool.py: Fix warning from Python 3.10.4. * pygnulib/GLModuleSystem.py (getConditionalName): Fix a string substitution expression. --- diff --git a/ChangeLog b/ChangeLog index 0a458a5856..7a8a09145f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-07-29 Bruno Haible + gnulib-tool.py: Fix warning from Python 3.10.4. + * pygnulib/GLModuleSystem.py (getConditionalName): Fix a string + substitution expression. + gnulib-tool.py: Fix error in Ubuntu 22.04. * gnulib-tool.py: Search for python3 in $PATH. diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index 73c207d995..11ff4c7963 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -383,7 +383,7 @@ Include:|Link:|License:|Maintainer:)' name = hashlib.md5(name).hexdigest() conditional = '%s_GNULIB_ENABLED_%s' % (macro_prefix, name) else: # if not nonascii - result = '%s_GNULIB_ENABLED_%s' (macro_prefix, name) + result = '%s_GNULIB_ENABLED_%s' % (macro_prefix, name) if type(result) is bytes: result = result.decode(ENCS['default']) return(result)