zopefoundation / zope.app.i18n

Persistent translation domains and message catalogs
Other
0 stars 5 forks source link

Fix DeprecationWarning about IRegistered/IUnregistered #5

Closed mgedmin closed 5 years ago

mgedmin commented 5 years ago

This would show up as

/path/to/site-packages/zope/configuration/config.py:240: DeprecationWarning: IRegistered is deprecated. Import from zope.interface.interfaces
  obj = getattr(mod, oname)
/path/to/site-packages/zope/configuration/config.py:240: DeprecationWarning: IUnregistered is deprecated. Import from zope.interface.interfaces
  obj = getattr(mod, oname)

making it a bit difficult to discover where the source of the warnings is.

Fixes #2.

mgedmin commented 5 years ago

The build breakage is probably because of https://github.com/zopefoundation/zope.app.i18n/issues/7.

I'll fix the other deprecation warnings, thanks for drawing my attention!

mgedmin commented 5 years ago

Rebasing on top of #9 should fix CI.