def read_jython_code(fullname, file, filename): data = _imp.readCode(filename, file, False) return BytecodeLoader.makeCode(fullname + "$py", data, filename)
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