dabo Commit
Revision 6446
Date: 2011-02-18 06:17:19 -0800 (Fri, 18 Feb 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6446
Changed:
U trunk/dabo/ui/uiwx/dFormMixin.py
Log:
Corrected syntax to work in Python 2.4
Diff:
Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py 2011-02-18 13:56:02 UTC (rev 6445)
+++ trunk/dabo/ui/uiwx/dFormMixin.py 2011-02-18 14:17:19 UTC (rev 6446)
@@ -946,7 +946,10 @@
else:
ret = self._sizersToOutline or self.Sizer
if not isinstance(ret, list):
- ret = [ret] if ret else []
+ if ret:
+ ret = [ret]
+ else:
+ ret = []
return ret
def _setSizersToOutline(self, val):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]