summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-27 21:34:01 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-27 21:34:01 (GMT)
commitc756d00cf20ba094a93f09647e80b688ded61bf5 (patch)
treeb9c04d37004dbc6e299afdeeea5cd88d1f1189f9 /Demo
parent8b01140d2c0580258281b22a63e13eb43c897827 (diff)
downloadcpython-c756d00cf20ba094a93f09647e80b688ded61bf5.zip
cpython-c756d00cf20ba094a93f09647e80b688ded61bf5.tar.gz
cpython-c756d00cf20ba094a93f09647e80b688ded61bf5.tar.bz2
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
Diffstat (limited to 'Demo')
-rw-r--r--Demo/newmetaclasses/Eiffel.py2
1 files changed, 1 insertions, 1 deletions
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):