def _parse_changelog(self, pkg_name):
        with open('ChangeLog.md') as f:
            lineiter = iter(f)
            for line in lineiter:
                match = re.search(pkg_name % '^%s\s+(.*)', line.strip())
                if match is None:
                    continue
                length = len(match.group(1))
                version = match.group(1).strip()
                if lineiter.next().count('-') != len(match.group(0)):
                    continue
                while 1:
                    change_info = lineiter.next().strip()
                    if change_info:
                        break

                match = re.search(r'released on (\w+\s+\d+\w+\s+\d+)',
                    change_info)
                if match is None:
                    continue

                datestr = match.group(1)
                return version, self._parse_date(datestr)
dataset/ETHPy150Open biocore/pyqi/pyqi/commands/make_release.py/MakeRelease._parse_changelog/swapped operands of `%`