##// END OF EJS Templates
patchbomb: replace file I/O with util.readfile
Bryan O'Sullivan -
r27767:ddfb8887 default
parent child Browse files
Show More
@@ -235,10 +235,7 b' def _getbundle(repo, dest, **opts):'
235 opts['type'] = btype
235 opts['type'] = btype
236 try:
236 try:
237 commands.bundle(ui, repo, tmpfn, dest, **opts)
237 commands.bundle(ui, repo, tmpfn, dest, **opts)
238 fp = open(tmpfn, 'rb')
238 return util.readfile(tmpfn)
239 data = fp.read()
240 fp.close()
241 return data
242 finally:
239 finally:
243 try:
240 try:
244 os.unlink(tmpfn)
241 os.unlink(tmpfn)
General Comments 0
You need to be logged in to leave comments. Login now