Mercurial > public > mercurial-scm > hg
comparison mercurial/bundlerepo.py @ 35048:80e9b85d96e5
bundlerepo: use suffix variable
It looks like the refactor in 702a26fec3e2 attempted to establish
this method argument but failed to use it. My editor caught it.
Differential Revision: https://phab.mercurial-scm.org/D1373
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 11 Nov 2017 17:07:33 -0800 |
parents | 32d079f37207 |
children | 4696938d40f9 |
comparison
equal
deleted
inserted
replaced
35047:32d079f37207 | 35048:80e9b85d96e5 |
---|---|
319 | 319 |
320 def _writetempbundle(self, readfn, suffix, header=''): | 320 def _writetempbundle(self, readfn, suffix, header=''): |
321 """Write a temporary file to disk | 321 """Write a temporary file to disk |
322 """ | 322 """ |
323 fdtemp, temp = self.vfs.mkstemp(prefix="hg-bundle-", | 323 fdtemp, temp = self.vfs.mkstemp(prefix="hg-bundle-", |
324 suffix=".hg10un") | 324 suffix=suffix) |
325 self.tempfile = temp | 325 self.tempfile = temp |
326 | 326 |
327 with os.fdopen(fdtemp, pycompat.sysstr('wb')) as fptemp: | 327 with os.fdopen(fdtemp, pycompat.sysstr('wb')) as fptemp: |
328 fptemp.write(header) | 328 fptemp.write(header) |
329 while True: | 329 while True: |