mirror of https://github.com/python/cpython
merge
This commit is contained in:
commit
3ada93fc86
|
@ -892,9 +892,8 @@ class ChainMap(MutableMapping):
|
||||||
__copy__ = copy
|
__copy__ = copy
|
||||||
|
|
||||||
def new_child(self, m=None): # like Django's Context.push()
|
def new_child(self, m=None): # like Django's Context.push()
|
||||||
'''
|
'''New ChainMap with a new map followed by all previous maps.
|
||||||
New ChainMap with a new map followed by all previous maps. If no
|
If no map is provided, an empty dict is used.
|
||||||
map is provided, an empty dict is used.
|
|
||||||
'''
|
'''
|
||||||
if m is None:
|
if m is None:
|
||||||
m = {}
|
m = {}
|
||||||
|
|
Loading…
Reference in New Issue