Skip to content

Commit

Permalink
Changed the way modules are moved:
Browse files Browse the repository at this point in the history
- Removed the deprecatedModule API.  It didn't really work.  It
  created a proxies for deprecated modules in sys.modules that
  generated warnings when names were accessed.  Unfortunately, there
  many analysis systems that inspect all modules found sys.modules.
  When one os these hit a deprecated module, it generated spurious
  deprecation warnings

- Added a new API to zope.deprecation to be used on placeholders for
  moved modules in their old locations.  With this approach, moved
  modules only generate warnings when they are actually imported.

- Added placeholders for various modiles moved out of zope.app.
  When we are ready to really get rid of these, we'll just remove the
  placeholders.
  • Loading branch information
Jim Fulton committed Apr 22, 2006
1 parent d3e1d58 commit 9223549
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/placelesssetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This module has moved to zope.i18n.testing
# and will go away in Zope 3.5
import zope.deprecation
zope.deprecation.moved(
'zope.i18n.testing',
"Zope 3.5",
)

0 comments on commit 9223549

Please sign in to comment.