Beispiel #1
0
 def __init__(self, next_filter,
              comment_begin=COMMENT_BEGIN,
              comment_end=COMMENT_END,
              separator=SEPARATOR,
              paren_begin=PAREN_BEGIN,
              paren_end=PAREN_END,
              quote=QUOTE,
              escape=ESCAPE):
   AbstractFilter.__init__(self, next_filter)
   self.comment_begin = comment_begin
   self.comment_end = comment_end
   self.separator = separator
   self.paren_begin = paren_begin
   self.paren_end = paren_end
   self.quote = quote
   self.escape = escape
   self.special = comment_begin + separator + paren_begin + paren_end + quote + escape
   self.reset()
   return
Beispiel #2
0
 def __init__(self, next_filter,
              comment_begin=COMMENT_BEGIN,
              comment_end=COMMENT_END,
              separator=SEPARATOR,
              paren_begin=PAREN_BEGIN,
              paren_end=PAREN_END,
              quote=QUOTE,
              escape=ESCAPE):
   AbstractFilter.__init__(self, next_filter)
   self.comment_begin = comment_begin
   self.comment_end = comment_end
   self.separator = separator
   self.paren_begin = paren_begin
   self.paren_end = paren_end
   self.quote = quote
   self.escape = escape
   self.special = comment_begin + separator + paren_begin + paren_end + quote + escape
   self.reset()
   return
Beispiel #3
0
 def close(self):
   AbstractFilter.close(self)
   self.terminate()
   return
Beispiel #4
0
 def close(self):
     AbstractFilter.close(self)
     self.terminate()
     return
Beispiel #5
0
 def __init__(self, next_filter):
     AbstractFilter.__init__(self, next_filter)
     return
Beispiel #6
0
 def close(self):
     self.feed(None)
     AbstractFilter.close(self)
     return
Beispiel #7
0
 def __init__(self, dict, next_filter):
     AbstractFilter.__init__(self, next_filter)
     self.dict = dict
     return
Beispiel #8
0
 def __init__(self, next_filter):
   AbstractFilter.__init__(self, next_filter)
   return
Beispiel #9
0
 def __init__(self, next_filter, warntypes, debug_action=False):
   AbstractFilter.__init__(self, next_filter)
   self.actionset = ParsePatternActionSet(self.notify, warntypes, debug_action)
   self.warntypes = warntypes
   return
Beispiel #10
0
 def close(self):
   self.feed(None)
   AbstractFilter.close(self)
   return
Beispiel #11
0
 def __init__(self, dict, next_filter):
   AbstractFilter.__init__(self, next_filter)
   self.dict = dict
   return