projects
/
lilass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9906a
)
avoid needless list construction
author
Ralf Jung
<post@ralfj.de>
Sun, 15 Sep 2013 10:54:35 +0000
(12:54 +0200)
committer
Ralf Jung
<post@ralfj.de>
Sun, 15 Sep 2013 10:54:35 +0000
(12:54 +0200)
gui.py
patch
|
blob
|
history
diff --git
a/gui.py
b/gui.py
index 560cb01aebf6936a0dbd81c74d65b44e5d4b7f76..c0697614408a251d396077159ff3d41edb1ce55e 100644
(file)
--- a/
gui.py
+++ b/
gui.py
@@
-103,7
+103,7
@@
def getFrontend(name = None):
# frontend not found or not available
raise Exception("Frontend %s not found or not available" % name)
# auto-detect
- for frontend in
list(frontends.values()
):
+ for frontend in
frontends.values(
):
if frontend.isAvailable():
return frontend() # call constructor
raise Exception("No frontend is available - this should not happen")