comparison piecrust/data/base.py @ 1010:501bd4ab7e06

internal: Remove unused parameter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 26 Nov 2017 22:21:33 -0800
parents 8adc27285d93
children
comparison
equal deleted inserted replaced
1009:cd0345e4001e 1010:501bd4ab7e06
1 import time
1 import collections.abc 2 import collections.abc
2 3
3 4
4 class MergedMapping(collections.abc.Mapping): 5 class MergedMapping(collections.abc.Mapping):
5 """ Provides a dictionary-like object that's really the aggregation of 6 """ Provides a dictionary-like object that's really the aggregation of
6 multiple dictionary-like objects. 7 multiple dictionary-like objects.
7 """ 8 """
8 def __init__(self, dicts, path='', *, stats=None): 9 def __init__(self, dicts, path=''):
9 self._dicts = dicts 10 self._dicts = dicts
10 self._path = path 11 self._path = path
11 self._stats = stats
12 12
13 def __getattr__(self, name): 13 def __getattr__(self, name):
14 try: 14 try:
15 return self[name] 15 return self[name]
16 except KeyError: 16 except KeyError: