-class Generator:
+class Base:
"""gnulib file content generator"""
_TEMPLATE = (
"## DO NOT EDIT! GENERATED AUTOMATICALLY!",
def __iter__(self):
- for line in Generator._TEMPLATE:
+ for line in Base._TEMPLATE:
yield line
-class POMakevars(Generator):
+class POMakevars(Base):
"""PO Makefile parameterization"""
_TEMPLATE = (
"# These options get passed to xgettext.",
-class POTFILES(Generator):
+class POTFILES(Base):
"""file list to be passed to xgettext"""
def __init__(self, config, files):
_type_assert("config", config, _BaseConfig)
-class AutoconfSnippet(Generator):
+class AutoconfSnippet(Base):
"""autoconf snippet generator for standalone module"""
def __init__(self, config, module, toplevel, no_libtool, no_gettext):
"""
-class InitMacro(Generator):
+class InitMacro(Base):
"""basic gl_INIT macro generator"""
def __init__(self, config, macro_prefix=None):
"""
-class CommandLine(Generator):
+class CommandLine(Base):
"""gnulib command-line invocation generator"""
_TESTS = {
"tests": "tests",
-class LibMakefile(Generator):
+class LibMakefile(Base):
_LDFLAGS = _re.compile(r"^lib_LDFLAGS\s*\+\=.*?$", _re.S)
_LIBNAME = _re.compile(r"lib_([A-Z][A-Z]*)", _re.S)
_GNUMAKE = _re.compile(r"^if (.*?)$", _re.S)
-class GnulibCache(Generator):
+class GnulibCache(Base):
def __init__(self, config):
_type_assert("config", config, _BaseConfig)
self.__config = config