def peek_call(self, a):
        assert type(a) == type([])
        a_set = (repr(a)[1:-1])
        if self.equal_set(a, self.non_ignored_tokens()): a_set = ''
        if self.has_option('context_insensitive_scanner'): a_set = ''
        if a_set: a_set += ","

        return 'self._peek(%s context=_context)' % a_set
Generate a call to scan for a token in the set 'a'
dataset/ETHPy150Open smurfix/yapps/yapps/parsetree.py/Generator.peek_call