hgkw/keyword.py
changeset 232 030712a46eb9
parent 231 95fa2165e4eb
child 233 e60fdc1990e3
equal deleted inserted replaced
231:95fa2165e4eb 232:030712a46eb9
   263         self.kwcnt = kwcnt
   263         self.kwcnt = kwcnt
   264 
   264 
   265     def read(self, node):
   265     def read(self, node):
   266         '''Passes data through kwemplater methods for
   266         '''Passes data through kwemplater methods for
   267         either unconditional keyword expansion
   267         either unconditional keyword expansion
   268         or counting of keywords and substitution method
   268         or counting of keywords and substitution.'''
   269         set by the calling overwrite function.'''
       
   270         data = super(kwfilelog, self).read(node)
   269         data = super(kwfilelog, self).read(node)
   271         if not self.kwcnt:
   270         if not self.kwcnt:
   272             return self.kwtemplater.expand(node, data)
   271             return self.kwtemplater.expand(node, data)
   273         return self.kwtemplater.process(node, data)
   272         return self.kwtemplater.process(node, data)
   274 
   273