Commit c935733a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c0979706
......@@ -198,7 +198,7 @@ from astroid.exceptions import NotFoundError
from astroid.scoped_nodes import Module
Module_getattr = Module.getattr
def _getattr(self, name, *args, **kw):
print 'AAA getattr %s %s' % (self.name, name)
print 'CCC getattr %s %s' % (self.name, name)
try:
try:
return Module_getattr(self, name, *args, **kw)
......@@ -245,10 +245,10 @@ def _getattr(self, name, *args, **kw):
raise e
self.locals[name] = [ast]
print '\t-> ok %s' % (ast,)
print '\tgetattr %s %s\t-> ok %s' % (self.name, name, ast)
return [ast]
except Exception, e:
print '\t-> %s' % (e,)
print '\tgetattr %s %s\t-> E %s' % (self.name, name, e,)
raise
Module.getattr = _getattr
......
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