projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use dict instead of substitute string
[bertos.git]
/
wizard
/
bertos_utils.py
diff --git
a/wizard/bertos_utils.py
b/wizard/bertos_utils.py
index 4fbc1b9c600d13a257444a14ff6c924cc436b033..f71f0e1037cd3342f4cf8f06c3312beddf081b4b 100644
(file)
--- a/
wizard/bertos_utils.py
+++ b/
wizard/bertos_utils.py
@@
-388,12
+388,9
@@
def isSupported(module, project):
module = project.info("MODULES")[module]
if "supports" in module:
support_string = module["supports"]
module = project.info("MODULES")[module]
if "supports" in module:
support_string = module["supports"]
- for tag, value in tag_dict.items():
- while support_string.find(tag) != -1:
- support_string = support_string.replace(tag, value)
supported = {}
try:
supported = {}
try:
- exec "supported = " + support_string in
{}
, supported
+ exec "supported = " + support_string in
tag_dict
, supported
except:
raise SupportedException(support_string)
return supported["supported"]
except:
raise SupportedException(support_string)
return supported["supported"]