def _get_class(self, class_str):
        """Imports and returns the class, given the module path to a class."""
        class_path = str(class_str).split('.')

        if 1 > len(class_path):
            module_name = '.'.join(class_path[:-1])
        else:
            module_name = '.'

        module = __import__(module_name, {}, {}, class_path[-1])
        return getattr(module, class_path[-1])
dataset/ETHPy150Open reviewboard/ReviewBot/extension/reviewbotext/forms.py/ProfileForm._get_class/swapped operands of `>`