]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Fix warning from Python 3.10.4.
authorBruno Haible <bruno@clisp.org>
Fri, 29 Jul 2022 09:14:27 +0000 (11:14 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 29 Jul 2022 09:14:27 +0000 (11:14 +0200)
* pygnulib/GLModuleSystem.py (getConditionalName): Fix a string
substitution expression.

ChangeLog
pygnulib/GLModuleSystem.py

index 0a458a5856af4e35376b114cd5d3c7d423a573e5..7a8a09145f7b47181a48b0f3a4f8386c9a268255 100644 (file)
--- 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.
 
index 73c207d995addb7a4d9a8eb8a33983e6589080ae..11ff4c7963aab6c1a81a72cc3da20bbe4a8554ac 100644 (file)
@@ -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)