Skip to content

Commit 9a9d219

Browse files
committed
mapping(): Remove this function since it does not add anything to the API.
1 parent bf43691 commit 9a9d219

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Lib/weakref.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@
1919

2020
ProxyTypes = (ProxyType, CallableProxyType)
2121

22-
__all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
22+
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
2323
"WeakKeyDictionary", "ReferenceType", "ProxyType",
2424
"CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
2525

26-
def mapping(dict=None,weakkeys=0):
27-
if weakkeys:
28-
return WeakKeyDictionary(dict)
29-
else:
30-
return WeakValueDictionary(dict)
31-
32-
3326
class WeakValueDictionary(UserDict.UserDict):
3427

3528
# We inherit the constructor without worrying about the input

0 commit comments

Comments
 (0)