changeset 2444:12854ba50c0d

password_checker test: add the usual set import magic for py 2.3, small whitespace fix
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 20 Jul 2007 17:52:56 +0200
parents b4c44e5be9e8
children 2dc7a3be8ec9
files MoinMoin/config/_tests/test_multiconfig.py MoinMoin/userprefs/suid.py
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/_tests/test_multiconfig.py	Fri Jul 20 17:45:20 2007 +0200
+++ b/MoinMoin/config/_tests/test_multiconfig.py	Fri Jul 20 17:52:56 2007 +0200
@@ -6,6 +6,11 @@
     @license: GNU GPL, see COPYING for details.
 """
 
+try:
+    set
+except:
+    from sets import Set as set
+
 import py
 
 
--- a/MoinMoin/userprefs/suid.py	Fri Jul 20 17:45:20 2007 +0200
+++ b/MoinMoin/userprefs/suid.py	Fri Jul 20 17:52:56 2007 +0200
@@ -93,7 +93,7 @@
         if not self._only:
             buttons = [html.INPUT(type="submit", name="select_user",
                                   value=_('Select User')),
-                       ' ',]
+                       ' ', ]
         else:
             buttons = []
         buttons.append(html.INPUT(type="submit", name="cancel",