(self, requested_token)
Skip over bytecode until particular token on statement start;
        this excludes statements in THEN or ELSE clauses.
Skip over bytecode until particular token on statement start;
        this excludes statements in THEN or ELSE clauses.
Skip over bytecode until particular token on statement start ; this excludes statements in THEN or ELSE clauses .
def skip_to_token(self, requested_token):
        """
        Skip over bytecode until particular token on statement start;
        this excludes statements in THEN or ELSE clauses.
        """
        while True:
            separator = self.skip_to_read(tk.END_STATEMENT)
            # skip line number, if there
            if separator == b'\0':
                # break on end of stream
                trail = self.read(4)
                if len(trail) < 4 or trail[:2] == b'\0\0':
                    return None
            # get first keyword in statement
            self.skip_blank()
            token = self.read_keyword_token()
            self.seek(-len(token), 1)
            if not token:
                return None
            elif token == requested_token:
                return token
def skip_to_token ( self , requested_token ) : while True : separator = self . skip_to_read ( tk . END_STATEMENT ) # skip line number, if there if separator == b'\0' : # break on end of stream trail = self . read ( 4 ) if len ( trail ) < 4 or trail [ : 2 ] == b'\0\0' : return None # get first keyword in statement self . skip_blank ( ) token = self . read_keyword_token ( ) self . seek ( - len ( token ) , 1 ) if not token : return None elif token == requested_token : return token