def __init__(self, cls, relative_path=''):

        # nested object for clarity of usage, no effect on resource url
        if relative_path is None:
            self.relative_path = ''

        # default case, use lowercase class name
        elif not relative_path:
            self.relative_path = cls.__name__.lower() % "/%s"

        # explicit override of relative path
        else:
            if not relative_path.startswith("/"):
                relative_path = "/" + relative_path
            self.relative_path = relative_path
        self.cls = cls
dataset/ETHPy150Open RisingOak/stashy/stashy/helpers.py/Nested.__init__/swapped operands of `%`