MCPcopy Index your code
hub / github.com/RustPython/RustPython / push_token

Method push_token

Lib/shlex.py:70–74  ·  view source on GitHub ↗

Push a token onto the stack popped by the get_token method

(self, tok)

Source from the content-addressed store, hash-verified

68 return self._punctuation_chars
69
70 def push_token(self, tok):
71 "Push a token onto the stack popped by the get_token method"
72 if self.debug >= 1:
73 print("shlex: pushing token " + repr(tok))
74 self.pushback.appendleft(tok)
75
76 def push_source(self, newstream, newfile=None):
77 "Push an input source onto the lexer's input source stack."

Callers

nothing calls this directly

Calls 3

reprFunction · 0.85
appendleftMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected