rust/hg-cpython/src/lib.rs
changeset 41130 d43719bd01f0
parent 41052 4c25038c112c
child 41184 dcf818267bc1
equal deleted inserted replaced
41129:074c72a38423 41130:d43719bd01f0
    33         "__doc__",
    33         "__doc__",
    34         "Mercurial core concepts - Rust implementation",
    34         "Mercurial core concepts - Rust implementation",
    35     )?;
    35     )?;
    36 
    36 
    37     let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
    37     let dotted_name: String = m.get(py, "__name__")?.extract(py)?;
    38     m.add(py, "__package__", "mercurial")?;
       
    39     m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
    38     m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?;
    40     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
    39     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
    41     Ok(())
    40     Ok(())
    42 });
    41 });