logilab-astng #70381 IndendationError in import causes crash [validation pending]

main.py:
import foo

foo.py:
if False:
print 'bye'

$ pylint --errors-only main.py
No config file found, using default configuration
Traceback (most recent call last):
File "/usr/bin/pylint", line 4, in <module>
lint.Run(sys.argv[1:])
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 860, in __init__
linter.check(args)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 493, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 565, in check_astng_module
walker.walk(astng)
File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 524, in walk
self.walk(child)
File "/usr/lib/pymodules/python2.7/pylint/utils.py", line 521, in walk
cb(astng)
File "/usr/lib/pymodules/python2.7/pylint/checkers/variables.py", line 448, in visit_import
module = node.infer_name_module(parts[0]).next()
File "/usr/lib/pymodules/python2.7/logilab/astng/bases.py", line 293, in wrapped
for res in _func(node, context, **kwargs):
File "/usr/lib/pymodules/python2.7/logilab/astng/inference.py", line 181, in infer_import
yield self.do_import_module(name)
File "/usr/lib/pymodules/python2.7/logilab/astng/mixins.py", line 117, in do_import_module
return mymodule.import_module(modname, level=level)
File "/usr/lib/pymodules/python2.7/logilab/astng/scoped_nodes.py", line 335, in import_module
return MANAGER.astng_from_module_name(modname)
File "/usr/lib/pymodules/python2.7/logilab/astng/manager.py", line 146, in astng_from_module_name
return self.astng_from_file(filepath, modname, fallback=False)
File "/usr/lib/pymodules/python2.7/logilab/astng/manager.py", line 120, in astng_from_file
return ASTNGBuilder(self).file_build(filepath, modname)
File "/usr/lib/pymodules/python2.7/logilab/astng/builder.py", line 133, in file_build
node = self.string_build(data, modname, path)
File "/usr/lib/pymodules/python2.7/logilab/astng/builder.py", line 142, in string_build
module = self._data_build(data, modname, path)
File "/usr/lib/pymodules/python2.7/logilab/astng/builder.py", line 156, in _data_build
node = parse(data + '\n')
File "/usr/lib/pymodules/python2.7/logilab/astng/builder.py", line 43, in parse
return compile(string, "<string>", 'exec', PyCF_ONLY_AST)
File "<string>", line 2
print 'bye'
^
IndentationError: expected an indented block

priorityimportant
typebug
done in<not specified>
load left0.000
closed by#607f472c60d9 closes #70381: IndendationError in import causes crash