-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brian Harring schrieb: > On Wed, Feb 11, 2009 at 11:10:43PM -0800, Alec Warner wrote: >> belongs.py has this gem: >> q.append(('^' if query[0] == '/' else '/') + re.escape(query) + '$') > Also a python2.6 only feature... > ~brian
python-2.5 it is ... -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmT83cACgkQ4UOg/zhYFuAnUQCeJs+JtVjJEs83xbffyEZTV7DE j/MAnRo0hIynhEZUdrtF2FzJiW1Z3nB7 =zTDf -----END PGP SIGNATURE-----