]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
codeparser: fix ShellSyntaxError usage
authorChris Larson <chris_larson@mentor.com>
Wed, 16 Mar 2011 14:38:18 +0000 (07:38 -0700)
committerChris Larson <chris_larson@mentor.com>
Wed, 16 Mar 2011 14:38:18 +0000 (07:38 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/codeparser.py

index bfffcacc3373c0e615ab540b7cf809484e9d8d84..c887a3ca080a60d71eba3a81149196db3417ea28 100644 (file)
@@ -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)