diff MoinMoin/action/SyncPages.py @ 2595:5e7b45489430

moved python2.3/2.4 compatibility code to MoinMoin.support.python_compatibility (thanks to Heinrich Wendel)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 03 Aug 2007 13:30:42 +0200
parents ece659592dd9
children 388204baf00f
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Fri Aug 03 11:44:46 2007 +0200
+++ b/MoinMoin/action/SyncPages.py	Fri Aug 03 13:30:42 2007 +0200
@@ -12,12 +12,6 @@
 import traceback
 import StringIO # not relevant for speed, so we do not need cStringIO
 
-# Compatiblity to Python 2.3
-try:
-    set
-except NameError:
-    from sets import Set as set
-
 
 from MoinMoin import wikiutil
 from MoinMoin.packages import unpackLine, packLine
@@ -26,6 +20,7 @@
 from MoinMoin.wikidicts import Dict
 from MoinMoin.wikisync import TagStore, UnsupportedWikiException, SyncPage, NotAllowedException
 from MoinMoin.wikisync import MoinLocalWiki, MoinRemoteWiki, UP, DOWN, BOTH, MIMETYPE_MOIN
+from MoinMoin.support.python_compatibility import set
 from MoinMoin.util.bdiff import decompress, patch, compress, textdiff
 from MoinMoin.util import diff3, rpc_aggregator