Comment 2 for bug 525940

Revision history for this message
Anders F Björklund (afb) wrote :

OK, the lucid python2.6 has a patch that conflicts with what smart is "expecting":

Index: Lib/fnmatch.py
===================================================================
--- Lib/fnmatch.py (.../tags/r264) (Revision 78201)
+++ Lib/fnmatch.py (.../branches/release26-maint) (Revision 78201)
@@ -104,4 +104,4 @@
                 res = '%s[%s]' % (res, stuff)
         else:
             res = res + re.escape(c)
- return res + "$"
+ return res + '\Z(?ms)'

Smart tries to do fnmatch.translate(token)[:-1], which now doesn't work anymore...