pyrser/passes/topython.py
def _clause(self, pt: parsing.ParserTree) -> [ast.stmt]:
        """Normalize a test expression into a statements list.

        Statements list are returned as-is.
        Expression is packaged as:
        if not expr:
            return False
        """
        if isinstance(pt, list):
            return pt
        return [ast.If(ast.UnaryOp(ast.Not(), pt),
                       [self.__exit_scope()],
                       [])]
def _clause(self, pt: parsing.ParserTree) -> [ast.stmt]:
        if isinstance(pt, list):
            return pt
        return [ast.If(ast.UnaryOp(ast.Not(), pt),
                       [self.__exit_scope()],
                       [])]
def _clause ( self , pt : parsing . ParserTree ) -> [ ast . stmt ] : if isinstance ( pt , list ) : return pt return [ ast . If ( ast . UnaryOp ( ast . Not ( ) , pt ) , [ self . __exit_scope ( ) ] , [ ] ) ]
Normalize a test expression into a statements list.

        Statements list are returned as-is.
        Expression is packaged as:
        if not expr:
            return False
Normalize a test expression into a statements list .