[bitbake-devel,3/4] pysh/pyshlex.py: Set is not importable

Submitted by Robert Yang on Dec. 4, 2018, 2:06 a.m. | Patch ID: 156843

Details

Message ID 2e220210d606c7dbd461ffca0490b924a4d1f9cb.1543889029.git.liezhi.yang@windriver.com
State New
Headers show

Commit Message

Robert Yang Dec. 4, 2018, 2:06 a.m.
>>> 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>
---
 bitbake/lib/bb/pysh/pyshlex.py | 5 -----
 1 file changed, 5 deletions(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/bb/pysh/pyshlex.py b/bitbake/lib/bb/pysh/pyshlex.py
index fbf094b..a42c294 100644
--- a/bitbake/lib/bb/pysh/pyshlex.py
+++ b/bitbake/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 *