review use of d.quote: use [ ] instead of deprecated map
[plcapi.git] / PLC / NetworkMethods.py
index 4a68297..ff31fe2 100644 (file)
@@ -49,6 +49,6 @@ class NetworkMethods(Table):
               ", ".join(NetworkMethod.fields)
 
         if methods:
-            sql += " WHERE method IN (%s)" % ", ".join(map(api.db.quote, methods))
+            sql += " WHERE method IN (%s)" % ", ".join( [ api.db.quote (m) for m in methods ] )
 
         self.selectall(sql)