From 14aaede5b451a5b903dde99202925eb4a016c231 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 15 Sep 2013 12:54:35 +0200 Subject: [PATCH] avoid needless list construction --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index 560cb01..c069761 100644 --- 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") -- 2.30.2