logilab-astng #104041 'Module' object has no attribute 'file_encoding' [validation pending]

I'm working on classes that use PyQt4 with a lot of import wilcard and I got this error (fixed now by improving the code quality).

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 902, in __init__
linter.check(args)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 514, in check
self.check_astng_module(astng, walker, rawcheckers)
File "/usr/lib/pymodules/python2.7/pylint/lint.py", line 585, in check_astng_module
checker.process_module(astng)
File "/usr/lib/pymodules/python2.7/pylint/checkers/format.py", line 189, in process_module
if node.file_encoding is not None:
AttributeError: 'Module' object has no attribute 'file_encoding'

Just to avoid this fatal exception, I just modified the incrimined line by:

if hasattr(node, 'file_encoding') and node.file_encoding is not None:

Affects PyLint 0.25.1 and 0.25.2 (at least).

priorityimportant
typebug
done in0.24.1
load0.100
load left0.000
closed by#de03a89f3826 properly define file_encoding Module attribute. Closes #104041