Remove Pass

This transform removes pass statements. If a statement is required, it is replaced by a literal zero expression statement.

This transform is always safe to use and enabled by default.

Disable this source transformation by passing the remove_pass=False argument to the python_minifier.minify() function, or passing --no-remove-pass to the pyminify command.

Example

Input

pass
def test():
    pass
    pass
pass

Output

def test():0