def version_tuple(self):
    global _git_version

    if _git_version is None:
      ver_str = git.version()
      if ver_str.startswith('git version '):
        _git_version = tuple(
          map(lambda x: int(x),
            ver_str[len('git version '):].strip().split('.')[0:3]
          ))
      else:
        print >>sys.stderr, ver_str % 'fatal: "%s" unsupported'
        sys.exit(1)
    return _git_version
dataset/ETHPy150Open ossxp-com/repo/git_command.py/_GitCall.version_tuple/swapped operands of `%`