"# Generated by gnulib-tool.",
)
+
def __repr__(self):
module = self.__class__.__module__
name = self.__class__.__name__
return "{0}.{1}".format(module, name)
+
def __str__(self):
return "\n".join([_ for _ in self])
+
+ def __enter__(self):
+ return self
+
+
+ def __exit__(self, exctype, excval, exctrace):
+ pass
+
+
def __iter__(self):
for line in Generator._TEMPLATE:
yield line
"# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.",
"USE_MSGCTXT = no"
)
+
+
def __init__(self, config):
_type_assert("config", config, _BaseConfig)
super().__init__()
" gl_COMMON",
)
+
def __init__(self, config, macro_prefix=None):
"""
config: gnulib configuration