MCPcopy Index your code
hub / github.com/python/cpython / pop_source

Method pop_source

Lib/shlex.py:90–97  ·  view source on GitHub ↗

Pop the input source stack.

(self)

Source from the content-addressed store, hash-verified

88 print('shlex: pushing to stream %s' % (self.instream,))
89
90 def pop_source(self):
91 "Pop the input source stack."
92 self.instream.close()
93 (self.infile, self.instream, self.lineno) = self.filestack.popleft()
94 if self.debug:
95 print('shlex: popping to %s, line %d' \
96 % (self.instream, self.lineno))
97 self.state = ' '
98
99 def get_token(self):
100 "Get a token from the input stream (or from stack if it's nonempty)"

Callers 1

get_tokenMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected