aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-12-04 10:06:02 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-08 22:36:50 +0000
commit118e9d8894e64d102543562314b318676006e710 (patch)
tree91ddbaa72e3d2d8ecf8506aeccbd08c5407c74d3
parentabee2ff5ee71bf8c3221cd9d3cd4243ebb4ca273 (diff)
downloadbitbake-118e9d8894e64d102543562314b318676006e710.tar.gz
pysh/pyshlex.py: Set is not importable
>>> from Set import Set Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'Set' So remove related code. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/pysh/pyshlex.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bb/pysh/pyshlex.py b/lib/bb/pysh/pyshlex.py
index fbf094b7a..a42c29446 100644
--- a/lib/bb/pysh/pyshlex.py
+++ b/lib/bb/pysh/pyshlex.py
@@ -13,11 +13,6 @@
# PLY in pull mode. It was designed to work incrementally and it would not be
# that hard to enable pull mode.
import re
-try:
- s = set()
- del s
-except NameError:
- from Set import Set as set
from ply import lex
from bb.pysh.sherrors import *