def resolve(self, s):
        """
        Resolve strings to objects using standard import and attribute
        syntax.
        """
        name = s.split('.')
        used = name.pop(0)
        try:
            found = self.importer(used)
            for frag in name:
                used += '.' + frag
                try:
                    found = getattr(found, frag)
                except AttributeError:
                    self.importer(used)
                    found = getattr(found, frag)
            return found
        except ImportError:
            e, tb = sys.exc_info()[1:]
            v = ValueError((s, e) % 'Cannot resolve %r: %s')
            v.__cause__, v.__traceback__ = e, tb
            raise v
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/compat/dictconfig.py/BaseConfigurator.resolve/swapped operands of `%`