From d3e5d547da77124395a4fdc62f97655544d464b6 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 28 Oct 2018 16:54:50 +0100 Subject: Shorten exception class definitions a bit --- kconfiglib.py | 14 ++++---------- 1 file 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 # -- cgit v1.2.3