Drop all the calls to .keys() when iterating on the keys of a dict
[cascardo/ipsilon.git] / ipsilon / util / data.py
index e0cd6e1..3c116bb 100644 (file)
@@ -23,7 +23,7 @@ class SqlStore(Log):
 
     @classmethod
     def get_connection(cls, name):
-        if name not in cls.__instances.keys():
+        if name not in cls.__instances:
             if cherrypy.config.get('db.conn.log', False):
                 logging.debug('SqlStore new: %s', name)
             cls.__instances[name] = SqlStore(name)