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

Method end_type

pattern/web/pdf/psparser.py:520–527  ·  view source on GitHub ↗
(self, type)

Source from the content-addressed store, hash-verified

518 return
519
520 def end_type(self, type):
521 if self.curtype != type:
522 raise PSTypeError('Type mismatch: %r != %r' % (self.curtype, type))
523 objs = [ obj for (_,obj) in self.curstack ]
524 (pos, self.curtype, self.curstack) = self.context.pop()
525 if 2 <= self.debug:
526 print >>sys.stderr, 'end_type: pos=%r, type=%r, objs=%r' % (pos, type, objs)
527 return (pos, objs)
528
529 def do_keyword(self, pos, token):
530 return

Callers 2

nextobjectMethod · 0.95
do_keywordMethod · 0.80

Calls 2

PSTypeErrorClass · 0.85
popMethod · 0.45

Tested by

no test coverage detected