examples/custom_raw.py
def process_module(self, node):
        """process a module

        the module's content is accessible via node.stream() function
        """
        with node.stream() as stream:
            for (lineno, line) in enumerate(stream):
                if line.rstrip().endswith("\\"):
                    self.add_message("backslash-line-continuation", line=lineno)
def process_module(self, node):
        """process a module

        the module's content is accessible via node.stream() function
        """
        with node.stream() as stream:
            for (lineno, line) in enumerate(stream):
                if line.rstrip().endswith("\\"):
                    self.add_message("backslash-line-continuation", line=lineno)
def process_module ( self , node ) : with node . stream ( ) as stream : for ( lineno , line ) in enumerate ( stream ) : if line . rstrip ( ) . endswith ( "\\" ) : self . add_message ( "backslash-line-continuation" , line = lineno )
process a module

        the module's content is accessible via node.stream() function
process a module