From: Ralf Jung Date: Sun, 15 Sep 2013 10:54:35 +0000 (+0200) Subject: avoid needless list construction X-Git-Url: https://git.ralfj.de/lilass.git/commitdiff_plain/14aaede5b451a5b903dde99202925eb4a016c231 avoid needless list construction --- 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")