Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #201 from pragmattica/write_as_binary
Browse files Browse the repository at this point in the history
Changing the 'open' command to open a temporary file as binary.
  • Loading branch information
Wouter de Bie committed Apr 8, 2016
2 parents a2f62d3 + 122578c commit 3bcfda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakebite/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def _handle_copyToLocal(self, path, node, dst, check_crc):
# Source is a file
elif self._is_file(node):
temporary_target = "%s._COPYING_" % target
f = open(temporary_target, 'w')
f = open(temporary_target, 'wb')
try:
for load in self._read_file(path, node, tail_only=False, check_crc=check_crc):
f.write(load)
Expand Down

0 comments on commit 3bcfda3

Please sign in to comment.