]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Rename a method.
authorBruno Haible <bruno@clisp.org>
Sun, 7 Aug 2022 20:59:08 +0000 (22:59 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 7 Aug 2022 21:04:33 +0000 (23:04 +0200)
* pygnulib/GLModuleSystem.py (GLModule.getAutoconfEarlySnippet): Renamed
from GLModule.getAutoconfSnippet_Early.
* pygnulib/GLImport.py: Update.
* pygnulib/GLTestDir.py: Likewise.

ChangeLog
pygnulib/GLImport.py
pygnulib/GLModuleSystem.py
pygnulib/GLTestDir.py

index 305d02be515c744c89ada7c66a10e23daea42522..1278d8e4d90e96a1cb4e10959332ba8d3cdf2d1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2022-08-07  Bruno Haible  <bruno@clisp.org>
 
+       gnulib-tool.py: Rename a method.
+       * pygnulib/GLModuleSystem.py (GLModule.getAutoconfEarlySnippet): Renamed
+       from GLModule.getAutoconfSnippet_Early.
+       * pygnulib/GLImport.py: Update.
+       * pygnulib/GLTestDir.py: Likewise.
+
        gnulib-tool.py: Fix section extraction from module descriptions.
        The code with   self.content.split(section)[-1]
        was broken because it recognizes an indented section label.
index 818f3d57c09ea38712ce04d2fb3d429c26ec685f..87d85c5181d71e8b62df555311801fe5bbc18f60 100644 (file)
@@ -606,7 +606,7 @@ AC_DEFUN([%s_EARLY],
             emit += '  AC_REQUIRE([AM_PROG_CC_C_O])\n'
         for module in moduletable['final']:
             emit += '  # Code from module %s:\n' % str(module)
-            snippet = module.getAutoconfSnippet_Early()
+            snippet = module.getAutoconfEarlySnippet()
             lines = [ line
                       for line in snippet.split(constants.NL)
                       if line != '' ]
index 32a133009a9919f8117102bbf482c72323bd80cd..14bc089b27474245450816cd9a6ea83a70b29468 100644 (file)
@@ -479,8 +479,8 @@ class GLModule(object):
             self.cache['dependencies'] = result
         return self.cache['dependencies']
 
-    def getAutoconfSnippet_Early(self):
-        '''GLModule.getAutoconfSnippet_Early() -> str
+    def getAutoconfEarlySnippet(self):
+        '''GLModule.getAutoconfEarlySnippet() -> str
 
         Return autoconf-early snippet.'''
         return self.sections.get('configure.ac-early', '')
index 9a3fde66ea406dd8fe8186589e68e42cc1b07db7..746b815b493797170d598df9265eebc1911801fd 100644 (file)
@@ -456,7 +456,7 @@ class GLTestDir(object):
                         pass
                     # if str(module) not in ['gnumakefile', 'maintainer-makefile']
                     else:
-                        snippet = module.getAutoconfSnippet_Early()
+                        snippet = module.getAutoconfEarlySnippet()
                         lines = [ line
                                   for line in snippet.split('\n')
                                   if line.strip() ]
@@ -573,7 +573,7 @@ class GLTestDir(object):
             else:  # if not single_configure
                 solution = module.isNonTests()
             if solution:
-                snippet = module.getAutoconfSnippet_Early()
+                snippet = module.getAutoconfEarlySnippet()
                 lines = [ line
                           for line in snippet.split('\n')
                           if line.strip() ]