##// END OF EJS Templates
templater: remove a mutable default argument...
Pierre-Yves David -
r26330:ec4f3755 default
parent child Browse files
Show More
@@ -792,8 +792,10 b' class engine(object):'
792 filter uses function to transform value. syntax is
792 filter uses function to transform value. syntax is
793 {key|filter1|filter2|...}.'''
793 {key|filter1|filter2|...}.'''
794
794
795 def __init__(self, loader, filters={}, defaults={}):
795 def __init__(self, loader, filters=None, defaults={}):
796 self._loader = loader
796 self._loader = loader
797 if filters is None:
798 filters = {}
797 self._filters = filters
799 self._filters = filters
798 self._defaults = defaults
800 self._defaults = defaults
799 self._cache = {}
801 self._cache = {}
General Comments 0
You need to be logged in to leave comments. Login now