review use of d.quote: use [ ] instead of deprecated map
[plcapi.git] / PLC / BootStates.py
index 416ca4d..d72b07d 100644 (file)
@@ -49,6 +49,6 @@ class BootStates(Table):
               ", ".join(BootState.fields)
 
         if boot_states:
-            sql += " WHERE boot_state IN (%s)" % ", ".join(map(api.db.quote, boot_states))
+            sql += " WHERE boot_state IN (%s)" % ", ".join( [ api.db.quote (s) for s in boot_states ] )
 
         self.selectall(sql)