pylintext.py
branchstable
changeset 8198 ce9c6ae03c2d
parent 8061 88ca47ceb9f2
child 8216 99ff746e8de8
--- 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''