Пример #1
0
def read_jython_code(fullname, file, filename):
    data = _imp.readCode(filename, file, False)
    return BytecodeLoader.makeCode(fullname + "$py", data, filename)
Пример #2
0
def read_jython_code(fullname, stream, filename):
    try:
        data = _imp.readCode(filename, stream, False)
        return BytecodeLoader.makeCode(fullname + "$py", data, filename)
    except IllegalArgumentException:
        return None