diff MoinMoin/formatter/__init__.py @ 1183:bc84eae93f8c

replace usage of find by 'in' operator
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 14 Aug 2006 01:24:01 +0200
parents a7f8dceb4410
children b1deb9496f41
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Mon Aug 14 00:54:29 2006 +0200
+++ b/MoinMoin/formatter/__init__.py	Mon Aug 14 01:24:01 2006 +0200
@@ -97,7 +97,7 @@
         """
         wikitag, wikiurl, wikitail, wikitag_bad = wikiutil.resolve_wiki(self.request, '%s:"%s"' % (interwiki, pagename))
         if wikitag == 'Self' or wikitag == self.request.cfg.interwikiname:
-            if wikitail.find('#') > -1:
+            if '#' in wikitail:
                 wikitail, kw['anchor'] = wikitail.split('#', 1)
                 wikitail = wikiutil.url_unquote(wikitail)
             return self.pagelink(on, wikitail, **kw)