Skip to content

Commit

Permalink
Fix inline if so that it works on python2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed Jun 11, 2012
1 parent 490cca0 commit 6012d1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion s3cmd
Expand Up @@ -284,7 +284,11 @@ def cmd_object_put(args):
for key in exclude_list: for key in exclude_list:
output(u"exclude: %s" % unicodise(key)) output(u"exclude: %s" % unicodise(key))
for key in local_list: for key in local_list:
output(u"upload: %s -> %s" % (local_list[key]['full_name_unicode'] if key != "-" else "<stdin>", local_list[key]['remote_uri'])) if key != "-":
nicekey = local_list[key]['full_name_unicode']
else:
nicekey = "<stdin>"
output(u"upload: %s -> %s" % (nicekey, local_list[key]['remote_uri']))


warning(u"Exitting now because of --dry-run") warning(u"Exitting now because of --dry-run")
return return
Expand Down

0 comments on commit 6012d1b

Please sign in to comment.