Mercurial > piecrust2
changeset 1010:501bd4ab7e06
internal: Remove unused parameter.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 26 Nov 2017 22:21:33 -0800 |
parents | cd0345e4001e |
children | c4cf3cfe2726 |
files | piecrust/data/base.py piecrust/data/builder.py |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/data/base.py Sun Nov 26 22:21:10 2017 -0800 +++ b/piecrust/data/base.py Sun Nov 26 22:21:33 2017 -0800 @@ -1,3 +1,4 @@ +import time import collections.abc @@ -5,10 +6,9 @@ """ Provides a dictionary-like object that's really the aggregation of multiple dictionary-like objects. """ - def __init__(self, dicts, path='', *, stats=None): + def __init__(self, dicts, path=''): self._dicts = dicts self._path = path - self._stats = stats def __getattr__(self, name): try:
--- a/piecrust/data/builder.py Sun Nov 26 22:21:10 2017 -0800 +++ b/piecrust/data/builder.py Sun Nov 26 22:21:33 2017 -0800 @@ -68,8 +68,7 @@ # Put the site data first so that `MergedMapping` doesn't load stuff # for nothing just to find a value that was in the YAML config all # along. - data = MergedMapping([site_data, data, providers_data], - stats=app.env.stats) + data = MergedMapping([site_data, data, providers_data]) # Do this at the end because we want all the data to be ready to be # displayed in the debugger window.