Home | History | Annotate | Download | only in python2.7

Lines Matching full:newfile

65     def push_source(self, newstream, newfile=None):
70 self.infile = newfile
74 if newfile is not None:
102 (newfile, newstream) = spec
103 self.push_source(newstream, newfile)
248 def sourcehook(self, newfile):
250 if newfile[0] == '"':
251 newfile = newfile[1:-1]
253 if isinstance(self.infile, basestring) and not os.path.isabs(newfile):
254 newfile = os.path.join(os.path.dirname(self.infile), newfile)
255 return (newfile, open(newfile, "r"))