Author: pjenvey
Date: 2008-10-05 16:28:04 -0600 (Sun, 05 Oct 2008)
New Revision: 3618
Modified:
FormEncode/trunk/formencode/foreach.py
Log:
fix Python < 2.4
Modified: FormEncode/trunk/formencode/foreach.py
===================================================================
--- FormEncode/trunk/formencode/foreach.py 2008-10-03 22:55:20 UTC (rev
3617)
+++ FormEncode/trunk/formencode/foreach.py 2008-10-05 22:28:04 UTC (rev
3618)
@@ -5,6 +5,10 @@
warnings.simplefilter('ignore', DeprecationWarning)
from sets import Set
warnings.resetwarnings()
+try:
+ set
+except NameError:
+ set = Set
from api import NoDefault, Invalid
from compound import CompoundValidator, to_python, from_python
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FormEncode-CVS mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/formencode-cvs