Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix inline if so that it works on python2.4

  • Loading branch information...
commit 6012d1bd788a48f60de0ba7fd0414227a3481245 1 parent 490cca0
Tom Wilkie authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 s3cmd
View
6 s3cmd
@@ -284,7 +284,11 @@ def cmd_object_put(args):
for key in exclude_list:
output(u"exclude: %s" % unicodise(key))
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")
return
Please sign in to comment.
Something went wrong with that request. Please try again.