summaryrefslogtreecommitdiff
path: root/tests/git-backup-on-error-multiple-backups.stderr
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-05-04 19:56:24 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-05-29 20:35:30 +0100
commiteebf790e2909ff39974e0db42fdfa9a98dbecbcf (patch)
tree5a999f6ea5ae4652bcad33ace2a95f50770632b3 /tests/git-backup-on-error-multiple-backups.stderr
parent4792912cecf52d63fdcc89e6f852e3a32f37c49c (diff)
downloadlorry-eebf790e2909ff39974e0db42fdfa9a98dbecbcf.tar.gz
lorry.{g,}zip-importer: Read and write in binary mode
gzip and zip files are not in text format, and the file contents that we send to git may not be either. So: * Open gzip files in binary mode. * Open the pipe to 'git fast-import' in binary mode. This requires using subprocess.Popen instead of os.popen. * Change printlines functions to encode text in UTF-8. * Use printlines functions in the remaining places where we need to write text.
Diffstat (limited to 'tests/git-backup-on-error-multiple-backups.stderr')
0 files changed, 0 insertions, 0 deletions