diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 01:58:01 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-06 01:58:01 +0100 |
| commit | 1747d18e5141e9ebb180474776358d496712f8af (patch) | |
| tree | 4ba283f9e331e9a423c465dec826355aa7b2fd78 /kconfiglib.py | |
| parent | 62893be60dd7b84cc24c84d6e6e88c026a4381a5 (diff) | |
Fix get_mainmenu_text() when none available.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 1e5caad..f07a6a0 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -731,7 +731,8 @@ class Config(): """Returns the text of the 'mainmenu' statement (with $-references to symbols replaced by symbol values), or None if the configuration has no 'mainmenu' statement.""" - return self._expand_sym_refs(self.mainmenu_text) + return None if self.mainmenu_text is None else \ + self._expand_sym_refs(self.mainmenu_text) def get_defconfig_filename(self): """Returns the name of the defconfig file, which is the first existing |
