[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/publisher/browser/metaconfigure.py
Don't mess with warnings or call resetwarnings! It
Jim Fulton
jim at zope.com
Tue Apr 18 19:56:08 EDT 2006
Log message for revision 67097:
Don't mess with warnings or call resetwarnings! It
breaks -Wignore.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/publisher/browser/metaconfigure.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/publisher/browser/metaconfigure.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/publisher/browser/metaconfigure.py 2006-04-18 23:55:50 UTC (rev 67096)
+++ Zope3/branches/jim-adapter/src/zope/app/publisher/browser/metaconfigure.py 2006-04-18 23:56:07 UTC (rev 67097)
@@ -214,7 +214,8 @@
"""Provides a new skin.
First, let's ignore the warnigns:
- >>> warnings.filterwarnings('ignore', category=DeprecationWarning)
+ >>> showwarning = warnings.showwarning
+ >>> warnings.showwarning = lambda *a, **k: None
>>> import pprint
>>> class Info(object):
@@ -283,7 +284,7 @@
ConfigurationError: You must specify the 'name' or 'interface' attribute.
Enabling the warnings again:
- >>> warnings.resetwarnings()
+ >>> warnings.showwarning = showwarning
"""
if name is None and interface is None:
raise ConfigurationError(
More information about the Zope3-Checkins
mailing list