[py-svn] r35287 - py/dist/py/apigen/source
fijal at codespeak.net
fijal at codespeak.net
Tue Dec 5 12:52:07 CET 2006
Author: fijal
Date: Tue Dec 5 12:52:06 2006
New Revision: 35287
Modified:
py/dist/py/apigen/source/browser.py
Log:
Added some exception checks
Modified: py/dist/py/apigen/source/browser.py
==============================================================================
--- py/dist/py/apigen/source/browser.py (original)
+++ py/dist/py/apigen/source/browser.py Tue Dec 5 12:52:06 2006
@@ -116,6 +116,9 @@
mod_dict = dict([(i.name, function_from_ast(i)) for i in function_ast]
+ [(i.name, class_from_ast(i)) for i in classes_ast])
# we check all the elements, if they're really there
- mod = path.pyimport()
- update_mod_dict(mod, mod_dict)
+ try:
+ mod = path.pyimport()
+ update_mod_dict(mod, mod_dict)
+ except (ImportError, AttributeError):
+ pass
return Module(path, mod_dict)
More information about the pytest-commit
mailing list