commit | c756d00cf20ba094a93f09647e80b688ded61bf5 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Tue Nov 27 21:34:01 2007 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Tue Nov 27 21:34:01 2007 +0000 |
tree | b9c04d37004dbc6e299afdeeea5cd88d1f1189f9 | |
parent | 8b01140d2c0580258281b22a63e13eb43c897827 [diff] [blame] |
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
diff --git a/Demo/newmetaclasses/Eiffel.py b/Demo/newmetaclasses/Eiffel.py index 04f9915..730a85d 100644 --- a/Demo/newmetaclasses/Eiffel.py +++ b/Demo/newmetaclasses/Eiffel.py
@@ -1,6 +1,6 @@ """Support Eiffel-style preconditions and postconditions.""" -from new import function +from types import FunctionType as function class EiffelBaseMetaClass(type):