Replaced import of the 'new' module with 'types' module and added a deprecation warning to the 'new' module.
diff --git a/Lib/test/test_funcattrs.py b/Lib/test/test_funcattrs.py
index a32be38..4474771 100644
--- a/Lib/test/test_funcattrs.py
+++ b/Lib/test/test_funcattrs.py
@@ -132,8 +132,8 @@
     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):