MCPcopy Create free account
hub / github.com/ActiveState/code / readline

Method readline

recipes/Python/578138_gprof2dotpy/recipe-578138.py:1404–1409  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1402 self.profile = Profile()
1403
1404 def readline(self):
1405 # Override LineParser.readline to ignore comment lines
1406 while True:
1407 LineParser.readline(self)
1408 if self.eof() or not self.lookahead().startswith('#'):
1409 break
1410
1411 def parse(self):
1412 # read lookahead

Callers 1

parseMethod · 0.95

Calls 4

startswithMethod · 0.80
lookaheadMethod · 0.80
readlineMethod · 0.45
eofMethod · 0.45

Tested by

no test coverage detected