diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-27 21:34:01 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-27 21:34:01 +0000 |
commit | 886edc4110941174baf2916a8bd09f9d45875e3e (patch) | |
tree | cd8a089ee6c0d6b03da847a6ab45f9d762a4292c /Lib/test/test_funcattrs.py | |
parent | f4d89a2560c20df6b2be7bf4e42e4d09d3844a44 (diff) | |
download | cpython-886edc4110941174baf2916a8bd09f9d45875e3e.tar.gz |
Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
Diffstat (limited to 'Lib/test/test_funcattrs.py')
-rw-r--r-- | Lib/test/test_funcattrs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_funcattrs.py b/Lib/test/test_funcattrs.py index a32be38333..44747714cc 100644 --- a/Lib/test/test_funcattrs.py +++ b/Lib/test/test_funcattrs.py @@ -132,8 +132,8 @@ if f2.a.one <> f1.a.one <> F.a.one <> 11: raise TestFailed # im_func may not be a Python method! -import new -F.id = new.instancemethod(id, None, F) +import types +F.id = types.MethodType(id, None, F) eff = F() if eff.id() <> id(eff): |