changeset 4331:ee11391a1423

fixing another py2.3/2.4 compatibility issue
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 25 Sep 2008 09:06:01 +0200
parents b6d5bf04b9e6
children e6b29581866d
files MoinMoin/action/__init__.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/__init__.py	Wed Sep 24 01:14:19 2008 +0200
+++ b/MoinMoin/action/__init__.py	Thu Sep 25 09:06:01 2008 +0200
@@ -30,6 +30,7 @@
 from MoinMoin.util import pysupport
 from MoinMoin import config, wikiutil
 from MoinMoin.Page import Page
+from MoinMoin.support.python_compatibility import set
 
 # create a list of extension actions from the package directory
 modules = pysupport.getPackageModules(__file__)
@@ -309,8 +310,8 @@
     if not hasattr(config.cache, 'action_names'):
         actions = names[:]
         actions.extend(wikiutil.getPlugins('action', config))
-        actions = set(action for action in actions
-                      if not action in config.actions_excluded)
+        actions = set([action for action in actions
+                      if not action in config.actions_excluded])
         config.cache.action_names = actions # remember it
     return config.cache.action_names
 
@@ -360,6 +361,6 @@
                 # Prevent modification of underlay only pages, or pages
                 # the user can't write and can't delete
                 excluded = [u'RenamePage', u'DeletePage', ] # AttachFile must NOT be here!
-        return set(action for action in actions if not action in excluded)
+        return set([action for action in actions if not action in excluded])