Lines Matching refs:filename
17 def __init__(self, filename): argument
18 self.filename = filename
21 self.lines = open(filename, 'r').readlines()
23 print '*** Can\'t open "%s":' % filename, msg
26 print 'diffing', self.filename
30 print 'no changes to', self.filename
33 os.rename(self.filename, self.filename + '~')
34 fp = open(self.filename, 'w')
36 print '*** Can\'t rewrite "%s":' % self.filename, msg
38 print 'writing', self.filename
47 self.filename, lineno, rest),
52 self.filename, lineno, rest),
56 self.filename, lineno, rest),
85 filename, lineno = prog.group(1, 2)
86 if not curfile or filename <> curfile.filename:
88 curfile = FileObj(filename)