File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33extern crate pyo3;
44
55use pyo3:: prelude:: * ;
6+ use pyo3:: py:: modinit;
67
78/// Module documentation string
8- #[ py :: modinit( _helloworld) ]
9+ #[ modinit( " _helloworld" ) ]
910fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
1011
1112 #[ pyfn( m, "run" , args="*" , kwargs="**" ) ]
Original file line number Diff line number Diff line change 33extern crate pyo3;
44
55use pyo3:: prelude:: * ;
6+ use pyo3:: py:: modinit;
67
78/// Module documentation string
8- #[ py :: modinit( english) ]
9+ #[ modinit( " english" ) ]
910fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
1011
1112 #[ pyfn( m, "hello" ) ]
Original file line number Diff line number Diff line change 33extern crate pyo3;
44
55use pyo3:: prelude:: * ;
6+ use pyo3:: py:: modinit;
67
78/// Module documentation string
8- #[ py :: modinit( french) ]
9+ #[ modinit( " french" ) ]
910fn init ( py : Python , m : & PyModule ) -> PyResult < ( ) > {
1011
1112 #[ pyfn( m, "hello" ) ]
You can’t perform that action at this time.
0 commit comments