review use of d.quote: use [ ] instead of deprecated map
[plcapi.git] / PLC / NetworkTypes.py
index 7e9187c..8d00b03 100644 (file)
@@ -49,6 +49,6 @@ class NetworkTypes(Table):
               ", ".join(NetworkType.fields)
 
         if types:
-            sql += " WHERE type IN (%s)" % ", ".join(map(api.db.quote, types))
+            sql += " WHERE type IN (%s)" % ", ".join( [ api.db.quote (t) for t in types ] )
 
         self.selectall(sql)