def consume_if(self, token):
    if self.peek() == token:
      self.consume(token)
      return True
    return False
Consumes the next token when it matches expectation.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/file_format_parser.py/_Tokenizer.consume_if