diff options
-rw-r--r-- | bitbake/lib/bb/COW.py | 4 | ||||
-rw-r--r-- | bitbake/lib/bb/cache.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/data_smart.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 7 |
5 files changed, 10 insertions, 14 deletions
diff --git a/bitbake/lib/bb/COW.py b/bitbake/lib/bb/COW.py index e5063d60a8..5db41776ec 100644 --- a/bitbake/lib/bb/COW.py +++ b/bitbake/lib/bb/COW.py | |||
@@ -26,7 +26,7 @@ | |||
26 | from inspect import getmro | 26 | from inspect import getmro |
27 | 27 | ||
28 | import copy | 28 | import copy |
29 | import types, sets | 29 | import types |
30 | types.ImmutableTypes = tuple([ \ | 30 | types.ImmutableTypes = tuple([ \ |
31 | types.BooleanType, \ | 31 | types.BooleanType, \ |
32 | types.ComplexType, \ | 32 | types.ComplexType, \ |
@@ -35,7 +35,7 @@ types.ImmutableTypes = tuple([ \ | |||
35 | types.LongType, \ | 35 | types.LongType, \ |
36 | types.NoneType, \ | 36 | types.NoneType, \ |
37 | types.TupleType, \ | 37 | types.TupleType, \ |
38 | sets.ImmutableSet] + \ | 38 | frozenset] + \ |
39 | list(types.StringTypes)) | 39 | list(types.StringTypes)) |
40 | 40 | ||
41 | MUTABLE = "__mutable__" | 41 | MUTABLE = "__mutable__" |
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 1001012e0c..272619386a 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -31,7 +31,6 @@ | |||
31 | import os, re | 31 | import os, re |
32 | import bb.data | 32 | import bb.data |
33 | import bb.utils | 33 | import bb.utils |
34 | from sets import Set | ||
35 | 34 | ||
36 | try: | 35 | try: |
37 | import cPickle as pickle | 36 | import cPickle as pickle |
@@ -525,6 +524,6 @@ class CacheData: | |||
525 | (set elsewhere) | 524 | (set elsewhere) |
526 | """ | 525 | """ |
527 | self.ignored_dependencies = [] | 526 | self.ignored_dependencies = [] |
528 | self.world_target = Set() | 527 | self.world_target = set() |
529 | self.bbfile_priority = {} | 528 | self.bbfile_priority = {} |
530 | self.bbfile_config_priorities = [] | 529 | self.bbfile_config_priorities = [] |
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 610824ab21..1f31d1203a 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -25,7 +25,6 @@ | |||
25 | import sys, os, getopt, glob, copy, os.path, re, time | 25 | import sys, os, getopt, glob, copy, os.path, re, time |
26 | import bb | 26 | import bb |
27 | from bb import utils, data, parse, event, cache, providers, taskdata, runqueue | 27 | from bb import utils, data, parse, event, cache, providers, taskdata, runqueue |
28 | from sets import Set | ||
29 | import itertools, sre_constants | 28 | import itertools, sre_constants |
30 | 29 | ||
31 | parsespin = itertools.cycle( r'|/-\\' ) | 30 | parsespin = itertools.cycle( r'|/-\\' ) |
@@ -482,7 +481,7 @@ class BBCooker: | |||
482 | 481 | ||
483 | # Tweak some variables | 482 | # Tweak some variables |
484 | item = self.bb_cache.getVar('PN', fn, True) | 483 | item = self.bb_cache.getVar('PN', fn, True) |
485 | self.status.ignored_dependencies = Set() | 484 | self.status.ignored_dependencies = set() |
486 | self.status.bbfile_priority[fn] = 1 | 485 | self.status.bbfile_priority[fn] = 1 |
487 | 486 | ||
488 | # Remove external dependencies | 487 | # Remove external dependencies |
@@ -574,7 +573,7 @@ class BBCooker: | |||
574 | self.status = bb.cache.CacheData() | 573 | self.status = bb.cache.CacheData() |
575 | 574 | ||
576 | ignore = bb.data.getVar("ASSUME_PROVIDED", self.configuration.data, 1) or "" | 575 | ignore = bb.data.getVar("ASSUME_PROVIDED", self.configuration.data, 1) or "" |
577 | self.status.ignored_dependencies = Set( ignore.split() ) | 576 | self.status.ignored_dependencies = set( ignore.split() ) |
578 | 577 | ||
579 | self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) ) | 578 | self.handleCollections( bb.data.getVar("BBFILE_COLLECTIONS", self.configuration.data, 1) ) |
580 | 579 | ||
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 0d39d20a45..c93aea7fef 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
@@ -32,7 +32,6 @@ import copy, os, re, sys, time, types | |||
32 | import bb | 32 | import bb |
33 | from bb import utils, methodpool | 33 | from bb import utils, methodpool |
34 | from COW import COWDictBase | 34 | from COW import COWDictBase |
35 | from sets import Set | ||
36 | from new import classobj | 35 | from new import classobj |
37 | 36 | ||
38 | 37 | ||
@@ -142,7 +141,7 @@ class DataSmart: | |||
142 | try: | 141 | try: |
143 | self._special_values[keyword].add( base ) | 142 | self._special_values[keyword].add( base ) |
144 | except: | 143 | except: |
145 | self._special_values[keyword] = Set() | 144 | self._special_values[keyword] = set() |
146 | self._special_values[keyword].add( base ) | 145 | self._special_values[keyword].add( base ) |
147 | 146 | ||
148 | return | 147 | return |
@@ -154,7 +153,7 @@ class DataSmart: | |||
154 | if '_' in var: | 153 | if '_' in var: |
155 | override = var[var.rfind('_')+1:] | 154 | override = var[var.rfind('_')+1:] |
156 | if not self._seen_overrides.has_key(override): | 155 | if not self._seen_overrides.has_key(override): |
157 | self._seen_overrides[override] = Set() | 156 | self._seen_overrides[override] = set() |
158 | self._seen_overrides[override].add( var ) | 157 | self._seen_overrides[override].add( var ) |
159 | 158 | ||
160 | # setting var | 159 | # setting var |
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 2df51de75a..9b3cbdf5db 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -23,7 +23,6 @@ Handles preparation and execution of a queue of tasks | |||
23 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 23 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
24 | 24 | ||
25 | from bb import msg, data, event, mkdirhier, utils | 25 | from bb import msg, data, event, mkdirhier, utils |
26 | from sets import Set | ||
27 | import bb, os, sys | 26 | import bb, os, sys |
28 | import signal | 27 | import signal |
29 | import stat | 28 | import stat |
@@ -525,8 +524,8 @@ class RunQueue: | |||
525 | 524 | ||
526 | self.runq_fnid.append(taskData.tasks_fnid[task]) | 525 | self.runq_fnid.append(taskData.tasks_fnid[task]) |
527 | self.runq_task.append(taskData.tasks_name[task]) | 526 | self.runq_task.append(taskData.tasks_name[task]) |
528 | self.runq_depends.append(Set(depends)) | 527 | self.runq_depends.append(set(depends)) |
529 | self.runq_revdeps.append(Set()) | 528 | self.runq_revdeps.append(set()) |
530 | 529 | ||
531 | runq_build.append(0) | 530 | runq_build.append(0) |
532 | 531 | ||
@@ -622,7 +621,7 @@ class RunQueue: | |||
622 | if maps[origdep] == -1: | 621 | if maps[origdep] == -1: |
623 | bb.msg.fatal(bb.msg.domain.RunQueue, "Invalid mapping - Should never happen!") | 622 | bb.msg.fatal(bb.msg.domain.RunQueue, "Invalid mapping - Should never happen!") |
624 | newdeps.append(maps[origdep]) | 623 | newdeps.append(maps[origdep]) |
625 | self.runq_depends[listid] = Set(newdeps) | 624 | self.runq_depends[listid] = set(newdeps) |
626 | 625 | ||
627 | bb.msg.note(2, bb.msg.domain.RunQueue, "Assign Weightings") | 626 | bb.msg.note(2, bb.msg.domain.RunQueue, "Assign Weightings") |
628 | 627 | ||