diff options
Diffstat (limited to 'src/zope/security/untrustedpython/interpreter.py')
-rw-r--r-- | src/zope/security/untrustedpython/interpreter.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/zope/security/untrustedpython/interpreter.py b/src/zope/security/untrustedpython/interpreter.py index 3d07cee..5ecc36b 100644 --- a/src/zope/security/untrustedpython/interpreter.py +++ b/src/zope/security/untrustedpython/interpreter.py @@ -11,8 +11,12 @@ # FOR A PARTICULAR PURPOSE. # ############################################################################## -from zope.deprecation import moved -moved('zope.untrustedpython.interpreter', '4.1') -del moved +from warnings import warn +warn('Import from zope.untrustedpython.interpreter. This BBB module will' + 'be removed in zope.security 4.1', DeprecationWarning, 2) +del warn -from zope.untrustedpython.interpreter import * +try: + from zope.untrustedpython.interpreter import * +except ImportError: + pass |