[Zope-CVS] CVS: Products/ExternalEditor - zopeedit.py:1.55
Chris McDonough
chrism at plope.com
Fri Mar 4 14:39:41 EST 2005
Update of /cvs-repository/Products/ExternalEditor
In directory cvs.zope.org:/tmp/cvs-serv14797
Modified Files:
zopeedit.py
Log Message:
Ignore deprecation warnings under win32 (these are raised as errors by py2exe).
=== Products/ExternalEditor/zopeedit.py 1.54 => 1.55 ===
--- Products/ExternalEditor/zopeedit.py:1.54 Thu Mar 3 19:11:44 2005
+++ Products/ExternalEditor/zopeedit.py Fri Mar 4 14:39:40 2005
@@ -18,15 +18,22 @@
__version__ = '0.8'
-import sys, os, re
+import sys
+
+win32 = sys.platform == 'win32'
+
+if win32:
+ # prevent warnings from being turned into errors by py2exe
+ import warnings
+ warnings.filterwarnings('ignore')
+
+import os, re
import traceback
from tempfile import mktemp
from ConfigParser import ConfigParser
from httplib import HTTPConnection, HTTPSConnection
from urlparse import urlparse
import urllib
-
-win32 = sys.platform == 'win32'
class Configuration:
More information about the Zope-CVS
mailing list