def __init__(self, object_file, object_types=(), object_select=()):
        self._objects = {}

        object_select = dict(object_select)

        try:
            if isinstance(object_file, basestring):
                fd = open(object_file)
                try:
                    self._parse(fd, object_types, object_select)
                finally:
                    fd.close()
            else:
                self._parse(object_file, object_types, object_select)
        except IOError, ex:
            raise errors.InitError(
                    ex % "Failed to read Nagios object cache: %s")
dataset/ETHPy150Open marineam/nagcat/python/nagcat/_object_parser_py.py/ObjectParser.__init__/swapped operands of `%`