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

Method get_objects

pattern/web/pdf/psparser.py:660–672  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

658 return r
659
660 def get_objects(self, s):
661 import StringIO
662 class MyParser(PSStackParser):
663 def flush(self):
664 self.add_results(*self.popall())
665 parser = MyParser(StringIO.StringIO(s))
666 r = []
667 try:
668 while 1:
669 r.append(parser.nextobject())
670 except PSEOF:
671 pass
672 return r
673
674 def test_1(self):
675 tokens = self.get_tokens(self.TESTDATA)

Callers 1

test_2Method · 0.95

Calls 3

MyParserClass · 0.85
nextobjectMethod · 0.80
appendMethod · 0.45

Tested by 1

test_2Method · 0.76