OCA / pylint-odoo

Odoo plugin for Pylint
http://www.pylint.org
143 stars 168 forks source link

[FIX] test-folder-imported: check if node has a modname as attribute #315

Closed fernandahf closed 3 years ago

fernandahf commented 3 years ago

Description of the issue/feature this PR addresses:

In python versions above 3.5, following error occurs when try to get modname from node.

AttributeError: 'Import' object has no attribute 'modname'

Current behavior before PR: Error caused by try to get modname from node from Import object.

Desired behavior after PR is merged: No errors shown when try to get modname from node.

Fix https://github.com/OCA/pylint-odoo/issues/318