From: Chris Larson Date: Wed, 16 Mar 2011 14:38:18 +0000 (-0700) Subject: codeparser: fix ShellSyntaxError usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0c364d9a5110b2b72361cfb5acc7daa21ac8420;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git codeparser: fix ShellSyntaxError usage Signed-off-by: Chris Larson --- diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py index bfffcacc337..c887a3ca080 100644 --- a/lib/bb/codeparser.py +++ b/lib/bb/codeparser.py @@ -4,7 +4,7 @@ import logging import os.path import bb.utils, bb.data from itertools import chain -from pysh import pyshyacc, pyshlex +from pysh import pyshyacc, pyshlex, sherrors logger = logging.getLogger('BitBake.CodeParser') @@ -227,7 +227,7 @@ class ShellParser(): try: tokens, _ = pyshyacc.parse(value, eof=True, debug=False) except pyshlex.NeedMore: - raise ShellSyntaxError("Unexpected EOF") + raise sherrors.ShellSyntaxError("Unexpected EOF") for token in tokens: self.process_tokens(token)