comparison tests/test-revlog-ancestry.py @ 9031:3b76321aa0de

compat: use open() instead of file() everywhere
author Alejandro Santos <alejolp@alejolp.com>
date Sun, 05 Jul 2009 11:01:30 +0200
parents 284fda4cd093
children a1aad8333864
comparison
equal deleted inserted replaced
9030:3f56055ff1d7 9031:3b76321aa0de
8 8
9 def commit(text, time): 9 def commit(text, time):
10 repo.commit(text=text, date="%d 0" % time) 10 repo.commit(text=text, date="%d 0" % time)
11 11
12 def addcommit(name, time): 12 def addcommit(name, time):
13 f = file(name, 'w') 13 f = open(name, 'w')
14 f.write('%s\n' % name) 14 f.write('%s\n' % name)
15 f.close() 15 f.close()
16 repo.add([name]) 16 repo.add([name])
17 commit(name, time) 17 commit(name, time)
18 18