Author: pjenvey
Date: 2008-11-24 19:37:05 -0700 (Mon, 24 Nov 2008)
New Revision: 3696

Modified:
   FormEncode/trunk/formencode/foreach.py
   FormEncode/trunk/formencode/validators.py
   FormEncode/trunk/setup.py
Log:
o avoid warnings.resetwarnings() as it nukes the default warnings filters
o zip_safe=False since we use __file__


Modified: FormEncode/trunk/formencode/foreach.py
===================================================================
--- FormEncode/trunk/formencode/foreach.py      2008-11-25 02:28:19 UTC (rev 
3695)
+++ FormEncode/trunk/formencode/foreach.py      2008-11-25 02:37:05 UTC (rev 
3696)
@@ -2,9 +2,10 @@
 Validator for repeating items.
 """
 import warnings
+filters = warnings.filters[:]
 warnings.simplefilter('ignore', DeprecationWarning)
 from sets import Set
-warnings.resetwarnings()
+warnings.filters = filters
 try:
     set
 except NameError:

Modified: FormEncode/trunk/formencode/validators.py
===================================================================
--- FormEncode/trunk/formencode/validators.py   2008-11-25 02:28:19 UTC (rev 
3695)
+++ FormEncode/trunk/formencode/validators.py   2008-11-25 02:37:05 UTC (rev 
3696)
@@ -33,9 +33,10 @@
 from api import *
 sha1 = random = None
 
+filters = warnings.filters[:]
 warnings.simplefilter('ignore', DeprecationWarning)
 import sets
-warnings.resetwarnings()
+warnings.filters = filters
 try:
     set
 except NameError:

Modified: FormEncode/trunk/setup.py
===================================================================
--- FormEncode/trunk/setup.py   2008-11-25 02:28:19 UTC (rev 3695)
+++ FormEncode/trunk/setup.py   2008-11-25 02:37:05 UTC (rev 3696)
@@ -29,6 +29,7 @@
       author_email="[EMAIL PROTECTED]",
       url="http://formencode.org";,
       license="PSF",
+      zip_safe=False,
       packages=["formencode", "formencode.util"],
       include_package_data=True,
       test_suite='nose.collector',


-------------------------------------------------------------------------
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

Reply via email to