commit | a5ac2ce9825b7cf8b92a352dc614e0d8a4c41a6f | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon May 02 11:02:13 2011 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Mon May 02 11:02:13 2011 -0700 |
tree | 6d683027459286f155900280ec29a37aaaefec08 | |
parent | 81b9656989e2acce6209184826ca135a712e3f8b [diff] [blame] |
Backport 3.3 fixes and cleans ups.
diff --git a/Lib/collections.py b/Lib/collections.py index 3693926..b904980 100644 --- a/Lib/collections.py +++ b/Lib/collections.py
@@ -716,6 +716,9 @@ def __contains__(self, key): return any(key in m for m in self.maps) + def __bool__(self): + return any(self.maps) + @_recursive_repr() def __repr__(self): return '{0.__class__.__name__}({1})'.format(