[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/expressions.py A little readability improvement.
Albertas Agejevas
alga at pov.lt
Fri Sep 24 04:43:27 EDT 2010
Log message for revision 116784:
A little readability improvement.
Changed:
U z3c.pt/trunk/src/z3c/pt/expressions.py
-=-
Modified: z3c.pt/trunk/src/z3c/pt/expressions.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/expressions.py 2010-09-23 22:55:30 UTC (rev 116783)
+++ z3c.pt/trunk/src/z3c/pt/expressions.py 2010-09-24 08:43:26 UTC (rev 116784)
@@ -51,8 +51,8 @@
while len(path_items):
name = path_items.pop()
- ns = ':' in name
- if ns is True:
+ ns_used = ':' in name
+ if ns_used:
namespace, name = name.split(':', 1)
base = namespaces.function_namespaces[namespace](base)
if ITraversable.providedBy(base):
@@ -68,7 +68,7 @@
if next is not _marker:
base = next
- if ns is True and isinstance(base, MethodType):
+ if ns_used and isinstance(base, MethodType):
base = base()
continue
else:
More information about the checkins
mailing list