sb: Add a defined check.

Updates #3210.
This commit is contained in:
Chris Johns 2017-10-27 17:22:12 +11:00
parent 5bd4aa6bb3
commit 9b54dd8e18

View File

@ -447,6 +447,9 @@ class macros:
if key in self.macros[map]:
del self.macros[map][key]
def defined(self, key, globals = True, maps = None):
return self.get(key, globals, maps) is not None
def expand(self, _str):
"""Simple basic expander of config file macros."""
expanded = True