From 62893be60dd7b84cc24c84d6e6e88c026a4381a5 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 6 Dec 2012 01:44:59 +0100 Subject: Only print Config.arch/srcarch if non-None. Also, Config.srctree cannot be None. --- kconfiglib.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index ed6c930..1e5caad 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -899,9 +899,12 @@ class Config(): return _sep_lines("Configuration", "File : " + self.filename, "Base directory : " + self.base_dir, - "Value of $ARCH at creation time : " + self.arch, - "Value of $SRCARCH at creation time : " + self.srcarch, - "Value of $srctree at creation time : " + self.srctree, + "Value of $ARCH at creation time : " + + ("(not set)" if self.arch is None else self.arch), + "Value of $SRCARCH at creation time : " + + ("(not set)" if self.srcarch is None else self.srcarch), + "Source tree (derived from $srctree;", + "defaults to '.' if $srctree isn't set) : " + self.srctree, "Most recently loaded .config : " + ("(no .config loaded)" if self.config_filename is None else self.config_filename), -- cgit v1.2.3