# HG changeset patch # User David Douard # Date 1328707029 -3600 # Node ID ce9c6ae03c2dc741cd827f2564bb29cf74e77683 # Parent 9e1da97d9b7552b2f8327e1045cc71e76713d314 [pylint] correctly detect uiprops module when it's not in a package diff -r 9e1da97d9b75 -r ce9c6ae03c2d pylintext.py --- 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''