Permalink
Browse files

Revert "cleanup"

This reverts commit 701a664.
  • Loading branch information...
1 parent 701a664 commit 859629611696e5f1205d7e038186d78051df6a4a Jason Dalton committed Mar 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 s3cmd
View
3 s3cmd
@@ -6,6 +6,7 @@
## License: GPL Version 2
import sys
+import binascii
if float("%d.%d" %(sys.version_info[0], sys.version_info[1])) < 2.4:
sys.stderr.write("ERROR: Python 2.4 or higher required, sorry.\n")
@@ -806,7 +807,7 @@ def cmd_sync_remote2local(args):
# create temporary files (of type .s3cmd.XXXX.tmp) in the same directory
# for downloading and then rename once downloaded
- temp_file_name = ".s3cmd.%s.tmp" % binascii.hexlify(os.urandom(10))
+ temp_file_name = str(u".s3cmd.%s.tmp" % binascii.hexlify(os.urandom(10)))
temp_file = os.path.join(os.path.dirname(dst_file), temp_file_name)
debug(u"created temp_file=%s" % unicodise(temp_file))

0 comments on commit 8596296

Please sign in to comment.