Some more things regarding #4269

This commit is contained in:
Miroslav Stampar
2020-07-16 16:10:02 +02:00
parent 6375f9e506
commit e910fc6b8b
7 changed files with 153 additions and 163 deletions

View File

@@ -1271,16 +1271,6 @@ class CallgrindParser(LineParser):
return None
key, value = pair
return value
line = self.lookahead()
mo = self._key_re.match(line)
if not mo:
return None
key, value = line.split(':', 1)
if key not in keys:
return None
value = value.strip()
self.consume()
return key, value
def parse_keys(self, keys):
line = self.lookahead()