summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-07-29 11:14:27 +0200
committerBruno Haible <bruno@clisp.org>2022-07-29 11:14:27 +0200
commit67e61c85b2190a7da0d1b2baf56a72f3b0ad1122 (patch)
treeb1f98f5d4214dfac2d5e986fe51ba9badf01618a
parente501167fc92c30bdfe636100147859be5550a5cd (diff)
downloadgnulib-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--ChangeLog4
-rw-r--r--pygnulib/GLModuleSystem.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a458a5856..7a8a09145f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)