##// END OF EJS Templates
Do not use mutable class defautl parameter...
Matthias BUSSONNIER -
Show More
@@ -93,7 +93,7 b' class Exporter(Configurable):'
93 93
94 94 #Processors that process the input data prior to the export, set in the
95 95 #constructor for this class.
96 transformers = []
96 transformers = None
97 97
98 98
99 99 def __init__(self, transformers=None, filters=None, config=None, **kw):
@@ -128,7 +128,7 b' class Exporter(Configurable):'
128 128 self._register_filters()
129 129
130 130 #Load user transformers. Overwrite existing transformers if need be.
131 if not transformers is None:
131 if transformers :
132 132 for transformer in transformers:
133 133 self.register_transformer(transformer)
134 134
General Comments 0
You need to be logged in to leave comments. Login now