MCPcopy Index your code
hub / github.com/clips/pattern / poll

Method poll

pattern/web/pdf/psparser.py:166–173  ·  view source on GitHub ↗
(self, pos=None, n=80)

Source from the content-addressed store, hash-verified

164 return self.bufpos+self.charpos
165
166 def poll(self, pos=None, n=80):
167 pos0 = self.fp.tell()
168 if not pos:
169 pos = self.bufpos+self.charpos
170 self.fp.seek(pos)
171 print >>sys.stderr, 'poll(%d): %r' % (pos, self.fp.read(n))
172 self.fp.seek(pos0)
173 return
174
175 def seek(self, pos):
176 """Seeks the parser to the given position.

Callers

nothing calls this directly

Calls 3

tellMethod · 0.80
seekMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected