Commit 027c2d84 authored by Tres Seaver's avatar Tres Seaver

Suppressed DeprecationWarning during import of ZPublisher.Iterators.

o That module needs to use Z2-style interfaces in 2.11, for BBB, but
  the Interface module itself issues the warning on import.
parent 2f19b3b1
......@@ -8,6 +8,10 @@ Zope Changes
Bugs Fixed
- Suppressed DeprecationWarning during import of ZPublisher.Iterators:
that module needs to use Z2-style interfaces in 2.11, for BBB, but
the Interface module itself issues the warning on import.
- Launchpad #246748: added 'immediate' option to sendXXX() methods
for sending a mail immediately by-passing the zope.sendmail delivery
mechanism
......
from Interface import Interface
import warnings
# The Z2 Interface module is deprecated: in Zope 2.12, this module will use
# Z3 interfaces instead. Meanwhile, silence the deprecation warning.
_existing_filters = warnings.filters[:]
warnings.filterwarnings('ignore', category=DeprecationWarning)
try:
from Interface import Interface
finally:
warnings.filters[:] = _existing_filters
del _existing_filters
class IStreamIterator(Interface):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment