diff MoinMoin/script/migration/_conv160_wiki.py @ 6103:500f68d3e2fd

remove our own usage of python_compatibility module
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 01:00:25 +0200
parents 6cdf52df1219
children
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 06 00:26:46 2016 +0200
+++ b/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 06 01:00:25 2016 +0200
@@ -33,7 +33,6 @@
 from MoinMoin import config, wikiutil, macro
 from MoinMoin.action import AttachFile
 from MoinMoin.Page import Page
-from MoinMoin.support.python_compatibility import rsplit
 
 from text_moin158_wiki import Parser
 
@@ -177,7 +176,7 @@
         return new_name
 
     def _replace_target(self, target):
-        target_and_anchor = rsplit(target, '#', 1)
+        target_and_anchor = target.rsplit('#', 1)
         if len(target_and_anchor) > 1:
             target, anchor = target_and_anchor
             target = self._replace(('PAGE', target))