MCPcopy Create free account
hub / github.com/archlinux/alpm / init

Function init

python-alpm/src/srcinfo/mod.rs:31–37  ·  view source on GitHub ↗
(m: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

29
30 #[pymodule_init]
31 fn init(m: &Bound<'_, PyModule>) -> PyResult<()> {
32 let modules = PyModule::import(m.py(), "sys")?.getattr("modules")?;
33 modules.set_item("alpm.alpm_srcinfo.error", m.getattr("error")?)?;
34 modules.set_item("alpm.alpm_srcinfo.source_info", m.getattr("source_info")?)?;
35 modules.set_item("alpm.alpm_srcinfo.schema", m.getattr("schema")?)?;
36 Ok(())
37 }
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected