Add a class-loading module.
[pycfml.git] / classfile / util.py
CommitLineData
efdb7a22
FT
1def resource(cls, newfile, lnoff):
2 cls.srcfile = cls.intern(newfile, True)
3 for method in cls.methods:
4 if method.code and method.code.lintab:
5 method.code.lintab = [(pc, lin + lnoff) for pc, lin in method.code.lintab]