def read(self, path):
    # Verifies a file exists *and* is readable
    if not os.access(path, os.R_OK):
        raise CarbonConfigException(path % "Error: Missing config file or wrong perms on %s")

    result = ConfigParser.read(self, path)
    sections = []
    for line in open(path):
      line = line.strip()

      if line.startswith('[') and line.endswith(']'):
        sections.append( line[1:-1] )

    self._ordered_sections = sections

    return result
dataset/ETHPy150Open graphite-project/carbon/lib/carbon/conf.py/OrderedConfigParser.read/swapped operands of `%`