changeset 2859:2087924a60f1

Creole parser: put back rsplit needed for python 2.3
author Radomir Dopieralski <moindev@sheep.art.pl>
date Sun, 23 Sep 2007 22:57:09 +0200
parents 70a1f88575ce
children 60f95d2b090b
files MoinMoin/parser/text_creole.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/text_creole.py	Sun Sep 23 22:18:17 2007 +0200
+++ b/MoinMoin/parser/text_creole.py	Sun Sep 23 22:57:09 2007 +0200
@@ -24,6 +24,7 @@
 import re
 import StringIO
 from MoinMoin import config, macro, wikiutil
+from MoinMoin.support.python_compatibility import rsplit # Needed for python 2.3
 
 Dependencies = []
 
@@ -643,7 +644,7 @@
             word = "%s/%s" % (self.formatter.page.page_name,
                 word[wikiutil.CHILD_PREFIX_LEN:])
         # handle anchors
-        parts = word.rsplit("#", 1)
+        parts = rsplit(word, "#", 1)
         anchor = ""
         if len(parts) == 2:
             word, anchor = parts