def flush(self, debug=False):
result = False<EOL>for x in range(<NUM_LIT:1000>):<EOL><INDENT>if self.pump(debug):<EOL><INDENT>result = True<EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>assert <NUM_LIT:0>, "<STR_LIT>"<EOL><DEDENT>return result<EOL>
Pump until there is no more input or output.

        Returns whether any data was moved.