def Close(self):
    while self.NextToken():
      if not self.buffer:
        return
Checks if the given value is not None.
dataset/ETHPy150Open google/grr/grr/lib/lexer.py/Lexer.Close--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TNotNone