[issue21707] modulefinder uses wrong CodeType signature in .replace_paths_in_code()

Marc-Andre Lemburg report at bugs.python.org
Tue Jun 10 19:06:24 CEST 2014


Marc-Andre Lemburg added the comment:

The fix is easy. Simply change the call to:

        return types.CodeType(co.co_argcount, co.co_kwonlyargcount,
                              co.co_nlocals, co.co_stacksize,
                              co.co_flags, co.co_code, tuple(consts),
                              co.co_names, co.co_varnames,
                              new_filename, co.co_name,
                              co.co_firstlineno, co.co_lnotab,
                              co.co_freevars, co.co_cellvars)

(ie. add the missing argument)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21707>
_______________________________________


More information about the Python-bugs-list mailing list