(co, mtime, size)
| 37 | raise_src = 'def do_raise(): raise TypeError\n' |
| 38 | |
| 39 | def make_pyc(co, mtime, size): |
| 40 | data = marshal.dumps(co) |
| 41 | pyc = (importlib.util.MAGIC_NUMBER + |
| 42 | struct.pack("<iLL", 0, |
| 43 | int(mtime) & 0xFFFF_FFFF, size & 0xFFFF_FFFF) + data) |
| 44 | return pyc |
| 45 | |
| 46 | def module_path_to_dotted_name(path): |
| 47 | return path.replace(os.sep, '.') |
no test coverage detected
searching dependent graphs…