diff -r ce9556358dbd -r 99ff746e8de8 pylintext.py --- a/pylintext.py Fri Feb 10 16:31:39 2012 +0100 +++ b/pylintext.py Fri Feb 10 16:53:52 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''