Lines Matching refs:instream
21 def __init__(self, instream=None, infile=None, posix=False, argument
23 if isinstance(instream, str):
24 instream = StringIO(instream)
25 if instream is not None:
26 self.instream = instream
29 self.instream = sys.stdin
78 self.filestack.appendleft((self.infile, self.instream, self.lineno))
80 self.instream = newstream
86 print('shlex: pushing to stream %s' % (self.instream,))
90 self.instream.close()
91 (self.infile, self.instream, self.lineno) = self.filestack.popleft()
94 % (self.instream, self.lineno))
136 nextchar = self.instream.read(1)
157 self.instream.readline()
227 self.instream.readline()