Fixes #318

Fix from https://bitbucket.org/logilab/pylint/issue/55/.