Parcourir la source

Minor style fixes

Thomas Adamcik il y a 14 ans
Parent
commit
f3de63ad05
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      netfields/managers.py

+ 4 - 4
netfields/managers.py

@@ -33,18 +33,18 @@ class NetQuery(sql.Query):
 
 
 class NetWhere(sql.where.WhereNode):
-    def make_atom(self, child, qn , conn):
-        if isinstance(child[0] , sql.where.Constraint):
+    def make_atom(self, child, qn, conn):
+        if isinstance(child[0], sql.where.Constraint):
             c = child[0]
             table_alias = c.alias
             name = c.col
             field = c.field
-            lookup_type , value_annot , params = child[1:]
+            lookup_type, value_annot, params = child[1:]
         else:
             table_alias, name, db_type, lookup_type, value_annot, params = child
 
         if field.db_type() not in ['inet', 'cidr']:
-            return super(NetWhere, self).make_atom(child, qn , conn)
+            return super(NetWhere, self).make_atom(child, qn, conn)
 
         if table_alias:
             field_sql = '%s.%s' % (qn(table_alias), qn(name))