##// 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 235 opts['type'] = btype
236 236 try:
237 237 commands.bundle(ui, repo, tmpfn, dest, **opts)
238 fp = open(tmpfn, 'rb')
239 data = fp.read()
240 fp.close()
241 return data
238 return util.readfile(tmpfn)
242 239 finally:
243 240 try:
244 241 os.unlink(tmpfn)
General Comments 0
You need to be logged in to leave comments. Login now