avoid needless list construction
authorRalf Jung <post@ralfj.de>
Sun, 15 Sep 2013 10:54:35 +0000 (12:54 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 15 Sep 2013 10:54:35 +0000 (12:54 +0200)
gui.py

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")