diff options
author | Bruno Haible <bruno@clisp.org> | 2022-08-07 22:59:08 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-08-07 23:04:33 +0200 |
commit | d528738ac3449ce1c4897882e6032eb3a3e929e2 (patch) | |
tree | 940a400f507468285e2048acbb7936d2a6b569e4 /pygnulib | |
parent | 81b8c4d5565dbbea10eb3561063d2e8da52148d7 (diff) | |
download | gnulib-d528738ac3449ce1c4897882e6032eb3a3e929e2.tar.gz |
gnulib-tool.py: Rename a method.
* pygnulib/GLModuleSystem.py (GLModule.getAutoconfEarlySnippet): Renamed
from GLModule.getAutoconfSnippet_Early.
* pygnulib/GLImport.py: Update.
* pygnulib/GLTestDir.py: Likewise.
Diffstat (limited to 'pygnulib')
-rw-r--r-- | pygnulib/GLImport.py | 2 | ||||
-rw-r--r-- | pygnulib/GLModuleSystem.py | 4 | ||||
-rw-r--r-- | pygnulib/GLTestDir.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/pygnulib/GLImport.py b/pygnulib/GLImport.py index 818f3d57c0..87d85c5181 100644 --- a/pygnulib/GLImport.py +++ b/pygnulib/GLImport.py @@ -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 != '' ] diff --git a/pygnulib/GLModuleSystem.py b/pygnulib/GLModuleSystem.py index 32a133009a..14bc089b27 100644 --- a/pygnulib/GLModuleSystem.py +++ b/pygnulib/GLModuleSystem.py @@ -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', '') diff --git a/pygnulib/GLTestDir.py b/pygnulib/GLTestDir.py index 9a3fde66ea..746b815b49 100644 --- a/pygnulib/GLTestDir.py +++ b/pygnulib/GLTestDir.py @@ -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() ] |