summaryrefslogtreecommitdiffstats
path: root/Lib/collections/__init__.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-05-18 07:05:20 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-05-18 07:05:20 (GMT)
commit163e9821b4644113e5aa4314e3c2e5b1b394e5f7 (patch)
tree877ab459b55549f50933947181f30598cc64edea /Lib/collections/__init__.py
parent4e0172fd9acf7c5e8f30905fc997f904adbe562f (diff)
downloadcpython-163e9821b4644113e5aa4314e3c2e5b1b394e5f7.zip
cpython-163e9821b4644113e5aa4314e3c2e5b1b394e5f7.tar.gz
cpython-163e9821b4644113e5aa4314e3c2e5b1b394e5f7.tar.bz2
Undo the deprecation of _asdict().
Backed out changeset c4ca39bece9d
Diffstat (limited to 'Lib/collections/__init__.py')
-rw-r--r--Lib/collections/__init__.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 24daa34..5fd54e8 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -280,9 +280,6 @@ class {typename}(tuple):
'''Return a new OrderedDict which maps field names to their values.
This method is obsolete. Use vars(nt) or nt.__dict__ instead.
'''
- import warnings
- warnings.warn('_asdict() is deprecated. Use vars(nt) instead.',
- DeprecationWarning, stacklevel=2)
return self.__dict__
def __getnewargs__(self):