From ba905e3a784c8bed06be85e02af2227aef6fa14b Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 8 Oct 2018 18:05:18 +0900 Subject: CONTRIBUTING.rst: Correcting `Context` example in the "imports" section This example is very outdated and comes from pre 1.0 when the Context object was going to be public API. Just corrected the example made about imports to import the `Context` object from `._context` instead of `.context`. --- CONTRIBUTING.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CONTRIBUTING.rst') diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index c0d80749f..95a32ef10 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -572,11 +572,11 @@ Module imports inside BuildStream are done with relative ``.`` notation **Good**:: - from .context import Context + from ._context import Context **Bad**:: - from buildstream.context import Context + from buildstream._context import Context The exception to the above rule is when authoring plugins, plugins do not reside in the same namespace so they must -- cgit v1.2.1