43 let dotted_name: String = m.get(py, "__name__")?.extract(py)?; |
43 let dotted_name: String = m.get(py, "__name__")?.extract(py)?; |
44 m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; |
44 m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; |
45 m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?; |
45 m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?; |
46 m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?; |
46 m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?; |
47 m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?; |
47 m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?; |
48 m.add(py, "filepatterns", filepatterns::init_module(py, &dotted_name)?)?; |
48 m.add( |
|
49 py, |
|
50 "filepatterns", |
|
51 filepatterns::init_module(py, &dotted_name)?, |
|
52 )?; |
49 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; |
53 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; |
50 m.add(py, "PatternFileError", py.get_type::<exceptions::PatternFileError>())?; |
54 m.add( |
51 m.add(py, "PatternError", py.get_type::<exceptions::PatternError>())?; |
55 py, |
|
56 "PatternFileError", |
|
57 py.get_type::<exceptions::PatternFileError>(), |
|
58 )?; |
|
59 m.add( |
|
60 py, |
|
61 "PatternError", |
|
62 py.get_type::<exceptions::PatternError>(), |
|
63 )?; |
52 Ok(()) |
64 Ok(()) |
53 }); |
65 }); |