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

Method dump

pattern/web/pdf/cmapdb.py:74–84  ·  view source on GitHub ↗
(self, out=sys.stdout, code2cid=None, code=None)

Source from the content-addressed store, hash-verified

72 return
73
74 def dump(self, out=sys.stdout, code2cid=None, code=None):
75 if code2cid is None:
76 code2cid = self.code2cid
77 code = ()
78 for (k,v) in sorted(code2cid.iteritems()):
79 c = code+(k,)
80 if isinstance(v, int):
81 out.write('code %r = cid %d\n' % (c,v))
82 else:
83 self.dump(out=out, code2cid=v, code=c)
84 return
85
86
87## IdentityCMap

Callers 4

saveMethod · 0.45
saveMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

iteritemsMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected