summaryrefslogtreecommitdiffstats
path: root/lib/bb/codeparser.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-16 07:38:18 -0700
committerChris Larson <chris_larson@mentor.com>2011-03-16 07:38:18 -0700
commite0c364d9a5110b2b72361cfb5acc7daa21ac8420 (patch)
treeecf293d38e666bf0600aee1ad6691915e7a0a27a /lib/bb/codeparser.py
parentcd274f653c677daa69b2e15ffed803b7b1d25a43 (diff)
downloadbitbake-e0c364d9a5110b2b72361cfb5acc7daa21ac8420.tar.gz
codeparser: fix ShellSyntaxError usage
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/codeparser.py')
-rw-r--r--lib/bb/codeparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py
index bfffcacc3..c887a3ca0 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)