Browse code

Fix inline if so that it works on python2.4

Tom Wilkie authored on 2012/06/11 21:12:29
Showing 1 changed files
... ...
@@ -284,7 +284,11 @@ def cmd_object_put(args):
284 284
         for key in exclude_list:
285 285
             output(u"exclude: %s" % unicodise(key))
286 286
         for key in local_list:
287
-            output(u"upload: %s -> %s" % (local_list[key]['full_name_unicode'] if key != "-" else "<stdin>", local_list[key]['remote_uri']))
287
+            if key != "-":
288
+                nicekey = local_list[key]['full_name_unicode']
289
+            else:
290
+                nicekey = "<stdin>"
291
+            output(u"upload: %s -> %s" % (nicekey, local_list[key]['remote_uri']))
288 292
 
289 293
         warning(u"Exitting now because of --dry-run")
290 294
         return