from .errors import PuppetToolsError, ModuleInitError
from .xlate import XLATOR
-__version__ = '0.1.0'
+__version__ = '0.1.1'
LOG = logging.getLogger(__name__)
# -------------------------------------------------------------------------
def __repr__(self):
- return str(self)
+ """Typecasting into a string for reproduction."""
+ out = "<%s(" % (self.__class__.__name__)
+
+ fields = []
+ fields.append("appname={!r}".format(self.appname))
+ fields.append("verbose={!r}".format(self.verbose))
+ fields.append("version={!r}".format(self.version))
+ fields.append("base_dir={!r}".format(self.base_dir))
+ if self.full_name_orig:
+ fields.append("full_name={!r}".format(self.full_name_orig))
+ else:
+ fields.append("full_name={!r}".format(self.full_name))
+ fields.append("initialized={!r}".format(self.initialized))
+
+ out += ", ".join(fields) + ")>"
+ return out
# -------------------------------------------------------------------------
def __eq__(self, other):