X-Git-Url: http://dolda2000.com/gitweb/?p=pycfml.git;a=blobdiff_plain;f=classfile%2Futil.py;fp=classfile%2Futil.py;h=24e07a81094712bf15a37a30c67298b5a323f921;hp=0000000000000000000000000000000000000000;hb=efdb7a220fe10c6dd82b13991f1f20343479dcd4;hpb=8a47385d93d28a2f5615c269d1e44dd241f9b9b1 diff --git a/classfile/util.py b/classfile/util.py new file mode 100644 index 0000000..24e07a8 --- /dev/null +++ b/classfile/util.py @@ -0,0 +1,5 @@ +def resource(cls, newfile, lnoff): + cls.srcfile = cls.intern(newfile, True) + for method in cls.methods: + if method.code and method.code.lintab: + method.code.lintab = [(pc, lin + lnoff) for pc, lin in method.code.lintab]