equal
deleted
inserted
replaced
457 fp_ = None |
457 fp_ = None |
458 filename = None |
458 filename = None |
459 try: |
459 try: |
460 # dump bundle to disk |
460 # dump bundle to disk |
461 fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg") |
461 fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg") |
462 fh = os.fdopen(fd, pycompat.sysstr("wb")) |
462 fh = os.fdopen(fd, r"wb") |
463 d = fp.read(4096) |
463 d = fp.read(4096) |
464 while d: |
464 while d: |
465 fh.write(d) |
465 fh.write(d) |
466 d = fp.read(4096) |
466 d = fp.read(4096) |
467 fh.close() |
467 fh.close() |