diff options
author | Bruno Haible <bruno@clisp.org> | 2022-07-29 11:14:27 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-07-29 11:14:27 +0200 |
commit | 67e61c85b2190a7da0d1b2baf56a72f3b0ad1122 (patch) | |
tree | b1f98f5d4214dfac2d5e986fe51ba9badf01618a | |
parent | e501167fc92c30bdfe636100147859be5550a5cd (diff) | |
download | gnulib-67e61c85b2190a7da0d1b2baf56a72f3b0ad1122.tar.gz |
gnulib-tool.py: Fix warning from Python 3.10.4.
* pygnulib/GLModuleSystem.py (getConditionalName): Fix a string
substitution expression.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | pygnulib/GLModuleSystem.py | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2022-07-29 Bruno Haible <bruno@clisp.org> + 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) |