Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 68164:73c5abb41296
Issue #11297: Add collections.ChainMap()
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sat, 26 Feb 2011 01:02:51 +0000 |
| parents | ce20ac41e31f |
| children | b39270c6b8d1 |
line wrap: on
line diff
--- a/Lib/string.py Sat Feb 26 00:22:25 2011 +0000 +++ b/Lib/string.py Sat Feb 26 01:02:51 2011 +0000 @@ -46,7 +46,7 @@ #################################################################### import re as _re -from collections import _ChainMap +from collections import ChainMap class _TemplateMetaclass(type): pattern = r""" @@ -100,7 +100,7 @@ if not args: mapping = kws elif kws: - mapping = _ChainMap(kws, args[0]) + mapping = ChainMap(kws, args[0]) else: mapping = args[0] # Helper function for .sub() @@ -126,7 +126,7 @@ if not args: mapping = kws elif kws: - mapping = _ChainMap(kws, args[0]) + mapping = ChainMap(kws, args[0]) else: mapping = args[0] # Helper function for .sub()
