[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1646] trunk/py/scripts/addons/ development_api_navigator.py: Added an exception to handle other buggy modules (for example codecs. builtins.False)

Dany Lebel axonestudio at gmail.com
Wed Feb 23 07:01:45 CET 2011


Revision: 1646
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1646
Author:   axon_d
Date:     2011-02-23 06:01:45 +0000 (Wed, 23 Feb 2011)
Log Message:
-----------
Added an exception to handle other buggy modules (for example codecs.builtins.False)

Modified Paths:
--------------
    trunk/py/scripts/addons/development_api_navigator.py

Modified: trunk/py/scripts/addons/development_api_navigator.py
===================================================================
--- trunk/py/scripts/addons/development_api_navigator.py	2011-02-22 21:45:41 UTC (rev 1645)
+++ trunk/py/scripts/addons/development_api_navigator.py	2011-02-23 06:01:45 UTC (rev 1646)
@@ -22,9 +22,9 @@
 bl_info = {
     "name": "API Navigator",
     "author": "Dany Lebel (Axon_D)",
-    "version": (1, 0, 1),
-    "blender": (2, 5, 6),
-    "api": 34936,
+    "version": (1, 0, 2),
+    "blender": (2, 5, 7),
+    "api": 34995,
     "location": "Text Editor > Properties > API Navigator Panel",
     "description": "Allows to explore the python api via the user interface",
     "warning": "",
@@ -151,9 +151,10 @@
         for i in dir(current_module):
             try :
                 t = str(type(eval(root_m_path + '.' + i)))
-            except AttributeError :
+            except (AttributeError, SyntaxError):
                 bug += [i]
                 continue
+
             
             if t == "<class 'module'>":
                 mod += [i]
@@ -711,4 +712,4 @@
 
 
 if __name__ == '__main__':
-    register()
+    register()
\ No newline at end of file



More information about the Bf-extensions-cvs mailing list