class_docstr: A token stream is an iterable that yields :class:`Token`\s.  The
  parser however does not iterate over it but calls :meth:`next` to go
  one token ahead.  The current active token is stored as :attr:`current`.
class_docstr_tok: ["A","token","stream","is","an","iterable","that","yields",":","class",":","`","Token","`","\\s",".","The","parser","however","does","not","iterate","over","it","but","calls",":","meth",":","`","next","`","to","go","one","token","ahead",".","The","current","active","token","is","stored","as",":","attr",":","`","current","`","."]
docstr: Go one token ahead and return the old one.
  
  Use the built-in :func:`next` instead of calling this directly.
docstr_tok: ["Go","one","token","ahead","and","return","the","old","one",".","Use","the","built-in",":","func",":","`","next","`","instead","of","calling","this","directly","."]
code: def __next__(self):
      """Go one token ahead and return the old one.
  
      Use the built-in :func:`next` instead of calling this directly.
      """
      rv = self.current
      if self._pushed:
          self.current = self._pushed.popleft()
      elif self.current.type is not TOKEN_EOF:
          try:
              self.current = next(self._iter)
          except StopIteration:
              self.close()
      return rv
  
imports: import re
  from ast import literal_eval
  from collections import deque
  from operator import itemgetter
  from ._compat import implements_iterator
  from ._compat import intern
  from ._compat import iteritems
  from ._compat import text_type
  from .exceptions import TemplateSyntaxError
  from .utils import LRUCache
label_desc: Use image node_id 10 for calling the TokenStream obj's underlying member method code with example usage: obj.__next__() and returns: rv