]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
mapping(): Remove this function since it does not add anything to the API.
authorFred Drake <fdrake@acm.org>
Tue, 10 Apr 2001 19:11:23 +0000 (19:11 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 10 Apr 2001 19:11:23 +0000 (19:11 +0000)
Lib/weakref.py

index a5a2d1d183eaa51c85add844f3205fe2de90b5aa..6945757b16d09613a6f570c1b2f7d3555e98330f 100644 (file)
@@ -19,17 +19,10 @@ from _weakref import \
 
 ProxyTypes = (ProxyType, CallableProxyType)
 
-__all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
+__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
            "WeakKeyDictionary", "ReferenceType", "ProxyType",
            "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
 
-def mapping(dict=None,weakkeys=0):
-    if weakkeys:
-        return WeakKeyDictionary(dict)
-    else:
-        return WeakValueDictionary(dict)
-
-
 class WeakValueDictionary(UserDict.UserDict):
 
     # We inherit the constructor without worrying about the input