from __future__ import absolute_import
# Standard module
-import sys
import os
import logging
import re
from configparser import Error as ConfigParseError
# Own modules
-from .errors import FunctionNotImplementedError, PpError
+from .errors import PpError
from .obj import PpBaseObject
-__version__ = '0.5.5'
+__version__ = '0.5.6'
LOG = logging.getLogger(__name__)
else:
config.read_file(stream)
except ConfigParseError as e:
- msg = "Wrong configuration in {!r} found: ".format(cfg_file)
+ msg = "Wrong configuration in {!r} found: ".format(self.config_file)
msg += str(e)
self.handle_error(msg, "Configuration error")
return
v = float(value)
if v < self.min_max_wait_for_finish_install:
LOG.error((
- "Value {val} for max_wait_for_finish_install is less than {minval}, "
- "using {default} seconds.").format(val=v,
- minval=self.min_max_wait_for_finish_install,
+ "Value {val} for max_wait_for_finish_install is less than "
+ "{minval}, using {default} seconds.").format(
+ val=v, minval=self.min_max_wait_for_finish_install,
default=self.default_max_wait_for_finish_install))
elif v > self.max_max_wait_for_finish_install:
LOG.error((
- "Value {val} for max_wait_for_finish_install is greater than {maxval}, "
- "using {default} seconds.").format(val=v,
- maxval=self.max_max_wait_for_finish_install,
+ "Value {val} for max_wait_for_finish_install is greater than "
+ "{maxval}, using {default} seconds.").format(
+ val=v, maxval=self.max_max_wait_for_finish_install,
default=self.default_max_wait_for_finish_install))
else:
self.max_wait_for_finish_install = v