Commit 44d89468 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c935733a
...@@ -198,7 +198,7 @@ from astroid.exceptions import NotFoundError ...@@ -198,7 +198,7 @@ from astroid.exceptions import NotFoundError
from astroid.scoped_nodes import Module from astroid.scoped_nodes import Module
Module_getattr = Module.getattr Module_getattr = Module.getattr
def _getattr(self, name, *args, **kw): def _getattr(self, name, *args, **kw):
print 'CCC getattr %s %s' % (self.name, name) print 'EEE getattr %s %s' % (self.name, name)
try: try:
try: try:
return Module_getattr(self, name, *args, **kw) return Module_getattr(self, name, *args, **kw)
...@@ -248,7 +248,7 @@ def _getattr(self, name, *args, **kw): ...@@ -248,7 +248,7 @@ def _getattr(self, name, *args, **kw):
print '\tgetattr %s %s\t-> ok %s' % (self.name, name, ast) print '\tgetattr %s %s\t-> ok %s' % (self.name, name, ast)
return [ast] return [ast]
except Exception, e: except Exception, e:
print '\tgetattr %s %s\t-> E %s' % (self.name, name, e,) print '\tgetattr %s %s\t-> E %r' % (self.name, name, e,)
raise raise
Module.getattr = _getattr Module.getattr = _getattr
...@@ -333,6 +333,16 @@ for filename in os.listdir(os.path.dirname(lxml.__file__)): ...@@ -333,6 +333,16 @@ for filename in os.listdir(os.path.dirname(lxml.__file__)):
module_name, module_name,
__import__(module_name, fromlist=[module_name], level=0)) __import__(module_name, fromlist=[module_name], level=0))
# XXX
import wendelin
def wendelin_transform():
return AstroidBuilder(MANAGER).string_build('''
__path__ = %s
''' % wendelin.__path__)
#_register_module_extender_from_live_module('wendelin', wendelin)
register_module_extender(MANAGER, 'wendelin', wendelin_transform)
# Properly search for namespace packages: original astroid (as of 1.3.8) only # Properly search for namespace packages: original astroid (as of 1.3.8) only
# checks at top-level and it doesn't work for Shared.DC.ZRDB (defined in # checks at top-level and it doesn't work for Shared.DC.ZRDB (defined in
# Products.ZSQLMethods; Shared and Shared.DC being a namespace package defined # Products.ZSQLMethods; Shared and Shared.DC being a namespace package defined
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment