dabo Commit
Revision 6504
Date: 2011-03-19 11:17:19 -0700 (Sat, 19 Mar 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6504
Changed:
U trunk/ide/ClassDesigner.py
Log:
Fixed bug that would duplicate design-wide import statements
Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py 2011-03-19 18:03:44 UTC (rev 6503)
+++ trunk/ide/ClassDesigner.py 2011-03-19 18:17:19 UTC (rev 6504)
@@ -624,7 +624,7 @@
importStatements = clsd.pop("importStatements", "")
if not importStatements:
# If stored in a single file, 'importStatements' will
be in the outermost 'code' dict.
- importStatements = clsd.get("code",
{}).get("importStatements", "")
+ importStatements = clsd.get("code",
{}).pop("importStatements", "")
# See if the class name requires a separate import
nm = clsd["name"]
try:
_______________________________________________
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]