Skip to content

Commit

Permalink
Revert "cleanup"
Browse files Browse the repository at this point in the history
This reverts commit 701a664.
  • Loading branch information
Jason Dalton committed Mar 8, 2013
1 parent 701a664 commit 8596296
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s3cmd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
## License: GPL Version 2 ## License: GPL Version 2


import sys import sys
import binascii


if float("%d.%d" %(sys.version_info[0], sys.version_info[1])) < 2.4: 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") sys.stderr.write("ERROR: Python 2.4 or higher required, sorry.\n")
Expand Down Expand Up @@ -806,7 +807,7 @@ def cmd_sync_remote2local(args):
# create temporary files (of type .s3cmd.XXXX.tmp) in the same directory # create temporary files (of type .s3cmd.XXXX.tmp) in the same directory
# for downloading and then rename once downloaded # 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) temp_file = os.path.join(os.path.dirname(dst_file), temp_file_name)
debug(u"created temp_file=%s" % unicodise(temp_file)) debug(u"created temp_file=%s" % unicodise(temp_file))


Expand Down

0 comments on commit 8596296

Please sign in to comment.