6.6.2. Null Tangler

6.6.2. Null Tangler

A null tangler eats up input without writing it to either a sink file or the documentation file. Note that the start and end section markers are still written (showing something was skipped over).
Start python section to interscript/tanglers/null.py[1]
     1: #line 138 "tanglers.ipk"
     2: #---------------------------------------------------------
     3: # null tangler
     4: # NOTE: a null tangler is _not_ the same as
     5: # some other tangler with a null sink:
     6: # null tanglers do _not_ write to the weaver!
     7: # Use a null tangler to remove files from the
     8: # source _and_ documentation
     9: 
    10: from interscript.tanglers.base import tangler_base
    11: class null_tangler(tangler_base):
    12:   def __init__(self,weaver=None):
    13:     tangler_base.__init__(self,null_sink(),weaver)
    14:     self.language = 'None'
    15: 
    16:   def get_comment_tangler(self):
    17:     return self
    18: 
    19:   def writeline(self,data,file,count,inhibit_sref=0):
    20:     pass
    21: 
End python section to interscript/tanglers/null.py[1]