Revision: 16027
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16027
Author: quorn
Date: 2008-08-08 17:54:04 +0200 (Fri, 08 Aug 2008)
Log Message:
-----------
Typing 'from a import b' threw an error if b was not found. Accidentally moved
this out of the try block in an earlier tidy-up.
Modified Paths:
--------------
branches/soc-2008-quorn/release/scripts/bpymodules/BPyTextPlugin.py
Modified: branches/soc-2008-quorn/release/scripts/bpymodules/BPyTextPlugin.py
===================================================================
--- branches/soc-2008-quorn/release/scripts/bpymodules/BPyTextPlugin.py
2008-08-08 15:38:14 UTC (rev 16026)
+++ branches/soc-2008-quorn/release/scripts/bpymodules/BPyTextPlugin.py
2008-08-08 15:54:04 UTC (rev 16027)
@@ -237,10 +237,9 @@
# Try importing name as an attribute of
the parent
try:
module = __import__(imp_from,
globals(), locals(), [imp_name])
+ imports[imp_symb] =
getattr(module, imp_name)
except (ImportError, ValueError,
AttributeError, TypeError):
pass
- else:
- imports[imp_symb] =
getattr(module, imp_name)
else:
imports[imp_symb] = module
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs