author | David Douard <david.douard@logilab.fr> |
Wed, 08 Feb 2012 14:17:09 +0100 | |
branch | stable |
changeset 8198 | ce9c6ae03c2d |
parent 8197 | 9e1da97d9b75 |
child 8199 | fb5c0e60a615 |
pylintext.py | file | annotate | diff | comparison | revisions |
--- a/pylintext.py Fri Feb 03 18:35:11 2012 +0100 +++ b/pylintext.py Wed Feb 08 14:17:09 2012 +0100 @@ -35,7 +35,7 @@ for etype in BASE_TYPES: module.locals[etype] = [scoped_nodes.Class(etype, None)] # add data() to uiprops module - if module.name.endswith('.uiprops'): + if module.name.split('.')[-1] == 'uiprops': fake = ASTNGBuilder(MANAGER).string_build(''' def data(string): return u''