# HG changeset patch # User Yuya Nishihara # Date 1546741784 -32400 # Node ID d43719bd01f0b2249fb61ce46151537b06de935a # Parent 074c72a3842369db13c7ea40a5a7b114f16f8bfe rust-cpython: remove invalid __package__ attribute Since mercurial.rustext is a package, its __package__ should be, if set, "mercurial.rustext". AFAIK, we don't have to set this attribute manually as the rustext module will be imported by the system importer. https://stackoverflow.com/a/21233334/10435339 diff -r 074c72a38423 -r d43719bd01f0 rust/hg-cpython/src/lib.rs --- a/rust/hg-cpython/src/lib.rs Mon Jan 07 19:03:23 2019 -0500 +++ b/rust/hg-cpython/src/lib.rs Sun Jan 06 11:29:44 2019 +0900 @@ -35,7 +35,6 @@ )?; let dotted_name: String = m.get(py, "__name__")?.extract(py)?; - m.add(py, "__package__", "mercurial")?; m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; m.add(py, "GraphError", py.get_type::())?; Ok(())