summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-06 03:47:26 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-06 03:47:26 +0200
commit85d32e329daf4efbd64c583e38e92e5cae6bd7da (patch)
tree146cbb27ccf0bcfacce3a77666d6f0db4c6b0d2e /kconfiglib.py
parent560d961e1bcc5bae9e560d1c1ba1b083e5293fd5 (diff)
Use 'raise A(b)' instead of 'raise A, b'.
Bit neater, and Python 3-friendly.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 0e8830c..81659ca 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3667,14 +3667,14 @@ class Internal_Error(Exception):
def _tokenization_error(s, filename, linenr):
loc = "" if filename is None else "{0}:{1}: ".format(filename, linenr)
- raise Kconfig_Syntax_Error, "{0}Couldn't tokenize '{1}'" \
- .format(loc, s.strip())
+ raise Kconfig_Syntax_Error("{0}Couldn't tokenize '{1}'"
+ .format(loc, s.strip()))
def _parse_error(s, msg, filename, linenr):
loc = "" if filename is None else "{0}:{1}: ".format(filename, linenr)
- raise Kconfig_Syntax_Error, "{0}Couldn't parse '{1}'{2}" \
- .format(loc, s.strip(),
- "." if msg is None else ": " + msg)
+ raise Kconfig_Syntax_Error("{0}Couldn't parse '{1}'{2}"
+ .format(loc, s.strip(),
+ "." if msg is None else ": " + msg))
def _internal_error(msg):
raise Internal_Error, msg + \