From 1961ec60c09b774a139a2f48767848277c9ffba7 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 27 May 2019 21:51:10 +0200 Subject: KconfigError-related documentation nits Not just for syntax errors when raised from Kconfig.__init__(). --- kconfiglib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 51857a0..3e4d257 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -390,7 +390,7 @@ Globbing 'source' ----------------- 'source' and 'rsource' accept glob patterns, sourcing all matching Kconfig -files. They require at least one matching file, throwing a KconfigError +files. They require at least one matching file, raising a KconfigError otherwise. For example, the following statement might source sub1/foofoofoo and @@ -807,8 +807,8 @@ class Kconfig(object): default warning settings (KCONFIG_WARN_UNDEF and KCONFIG_WARN_UNDEF_ASSIGN). - Raises KconfigError on syntax errors, and (possibly a subclass of) - IOError on IO errors ('errno', 'strerror', and 'filename' are + Raises KconfigError on syntax/semantic errors, and (possibly a subclass + of) IOError on IO errors ('errno', 'strerror', and 'filename' are available). Note that IOError can be caught as OSError on Python 3. filename (default: "Kconfig"): -- cgit v1.2.3