MCPcopy Create free account
hub / github.com/rthalley/dnspython / next

Method next

dns/tokenizer.py:469–478  ·  view source on GitHub ↗

Return the next item in an iteration. Returns a Token.

(self)

Source from the content-addressed store, hash-verified

467 self.ungotten_token = token
468
469 def next(self):
470 """Return the next item in an iteration.
471
472 Returns a Token.
473 """
474
475 token = self.get()
476 if token.is_eof():
477 raise StopIteration
478 return token
479
480 __next__ = next
481

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
is_eofMethod · 0.80

Tested by

no test coverage detected