diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-10-28 16:54:50 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-10-28 16:54:50 +0100 |
| commit | d3e5d547da77124395a4fdc62f97655544d464b6 (patch) | |
| tree | 259c987ed22b963f780b4461fd97ccb8f57ef216 /kconfiglib.py | |
| parent | c4201413a092d2914e16e5f79a1ae6133aa2ce53 (diff) | |
Shorten exception class definitions a bit
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index cc75143..2a8d471 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -5331,17 +5331,12 @@ class Variable(object): self.value) class KconfigError(Exception): - """ - Exception raised for Kconfig-related errors. - """ - -# Backwards compatibility -KconfigSyntaxError = KconfigError + "Exception raised for Kconfig-related errors" class InternalError(Exception): - """ - Exception raised for internal errors. - """ + "Exception raised for internal errors" + +KconfigSyntaxError = KconfigError # Backwards compatibility # # Public functions @@ -6032,7 +6027,6 @@ def _shell_fn(kconf, _, command): # parameter was added in 3.6), so we do this manual version instead. return "\n".join(stdout.splitlines()).rstrip("\n").replace("\n", " ") - # # Public global constants # |
