fix if condition
authorTony Mack <tmack@cs.princeton.edu>
Mon, 13 Jul 2009 16:35:04 +0000 (16:35 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Mon, 13 Jul 2009 16:35:04 +0000 (16:35 +0000)
sfa/util/record.py

index 4b01edf..b76e7ea 100644 (file)
@@ -321,7 +321,7 @@ class GeniRecord(dict):
             if key not in order:
                 order.append(key)
         for key in order:
-            if key in (self and self.fields):
+            if key in self and key in self.fields:
                 if key in 'gid' and self[key]:
                     gid = GID(string=self[key])
                     print "     %s:" % key