Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.

This commit is contained in:
Christian Heimes 2007-11-27 21:34:01 +00:00
parent 8b01140d2c
commit c756d00cf2
10 changed files with 52 additions and 81 deletions

View file

@ -1,6 +1,6 @@
"""Support Eiffel-style preconditions and postconditions."""
from new import function
from types import FunctionType as function
class EiffelBaseMetaClass(type):