def _resolve_rev(self, rev):
        """
        Resolve rev to a standard commit fmt to be matched in `git blame`.
        """
        if not rev:
            return None

        result = self._git_cmd('rev-parse %s' % rev)
        if not self.GIT_COMMIT_RE.match(result):
            raise GitError(
                result % '"%s" does not appear to be a commit.')
        return result
dataset/ETHPy150Open jenanwise/codequality/codequality/scmhandlers.py/GitHandler._resolve_rev/swapped operands of `%`