(self, out=sys.stdout, code2cid=None, code=None)
| 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 |