changeset 2491:41669a7a60ad

Import set if it's unknown (python 2.3 compatibility)
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 22 Jul 2007 04:14:23 +0200
parents 111868e5cb21
children 5b8e8e7db56f
files MoinMoin/config/multiconfig.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Sun Jul 22 03:51:10 2007 +0200
+++ b/MoinMoin/config/multiconfig.py	Sun Jul 22 04:14:23 2007 +0200
@@ -445,6 +445,11 @@
                      some string with an error msg, if the password is problematic.
         """
         try:
+            set
+        except:
+            from sets import Set as set
+
+        try:
             # in any case, do a very simple built-in check to avoid the worst passwords
             if len(password) < 6:
                 raise ValueError("Password too short.")