(module_name, source_code, filename)
| 22 | |
| 23 | |
| 24 | def demoteSourceCodeToBytecode(module_name, source_code, filename): |
| 25 | if isStandaloneMode(): |
| 26 | filename = module_name.asPath() + ".py" |
| 27 | |
| 28 | bytecode = compileSourceToBytecode(source_code, filename) |
| 29 | |
| 30 | bytecode = onFrozenModuleBytecode( |
| 31 | module_name=module_name, is_package=False, bytecode=bytecode |
| 32 | ) |
| 33 | |
| 34 | return marshal.dumps(bytecode) |
| 35 | |
| 36 | |
| 37 | def demoteCompiledModuleToBytecode(module): |
no test coverage detected
searching dependent graphs…