From: Fred Drake Date: Tue, 10 Apr 2001 19:11:23 +0000 (+0000) Subject: mapping(): Remove this function since it does not add anything to the API. X-Git-Tag: v2.1c1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8;p=thirdparty%2FPython%2Fcpython.git mapping(): Remove this function since it does not add anything to the API. --- diff --git a/Lib/weakref.py b/Lib/weakref.py index a5a2d1d183ea..6945757b16d0 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -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