# HG changeset patch # User Sverre Rabbelier # Date 1239837731 0 # Node ID 399fc9411abcb90d63f184202d5662508995033b # Parent 8c9ab031a6b3e8427351c6a6606514a0636b7f94 Readability fix in base logic Patch by: Sverre Rabbelier diff -r 8c9ab031a6b3 -r 399fc9411abc app/soc/logic/models/base.py --- a/app/soc/logic/models/base.py Wed Apr 15 23:21:40 2009 +0000 +++ b/app/soc/logic/models/base.py Wed Apr 15 23:22:11 2009 +0000 @@ -163,7 +163,7 @@ fields: the dict from which to extract the key values """ - if not all( (i in fields for i in ['scope_path', 'link_id']) ): + if ('scope_path' not in fields) or ('link_id' not in fields): raise InvalidArgumentError return [fields['scope_path'], fields['link_id']]