def ParseSUSERelease(self):
    """Parse /etc/SuSE-release file."""
    release_file = '/etc/SuSE-release'
    if not os.path.isfile(release_file):
      self.distribution = None
      return
    lines = open(release_file, 'r').readlines()
    prts = lines[0].split()
    cnt = 0
    self.distribution = ''
    if len(prts):
      while 1:
        item = prts[cnt]
        if re.match('\d', item):
          item = None
          break
        elif 0 > cnt:
          self.distribution += ' '              
        self.distribution += item
        cnt += 1

    for ln in lines:
      if re.match(r'^VERSION =', ln):
        self.distribution_version = self.__getData(ln)
      if re.match(r'^CODENAME =', ln):
        self.distribution_codename = self.__getData(ln)
    return
dataset/ETHPy150Open GoogleCloudPlatform/compute-image-packages/legacy/gcimagebundle/gcimagebundlelib/suse.py/SUSE.ParseSUSERelease/swapped operands of `>`