mirror of
https://github.com/python/cpython.git
synced 2025-11-08 13:42:22 +00:00
merge
This commit is contained in:
commit
3ada93fc86
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue