]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/pwclient
pwclient: Remove unhandled action 'save'
[patchwork] / apps / patchwork / bin / pwclient
index b12e8161e84d89b1f386459d21084648d6403270..d630c5bba0797dda709077c470026d3d9dbcc8cf 100755 (executable)
@@ -646,26 +646,30 @@ def main():
             if len(s) > 0:
                 print unicode(s).encode("utf-8")
 
-    elif action in ('get', 'save', 'info'):
-        if action == 'info':
-            [action_info(rpc, patch_id) for patch_id in non_empty(h, patch_ids)]
-        else:
-            [action_get(rpc, patch_id) for patch_id in non_empty(h, patch_ids)]
+    elif action == 'info':
+        for patch_id in non_empty(h, patch_ids):
+            action_info(rpc, patch_id)
+
+    elif action == 'get':
+        for patch_id in non_empty(h, patch_ids):
+            action_get(rpc, patch_id)
 
     elif action == 'apply':
-        [action_apply(rpc, patch_id) for patch_id in non_empty(h, patch_ids)]
+        for patch_id in non_empty(h, patch_ids):
+            action_apply(rpc, patch_id)
 
     elif action == 'git_am':
         cmd = ['git', 'am']
         if do_signoff:
             cmd.append('-s')
-        [action_apply(rpc, patch_id, cmd) for patch_id in
-         non_empty(h, patch_ids)]
+        for patch_id in non_empty(h, patch_ids):
+            action_apply(rpc, patch_id, cmd)
 
     elif action == 'update':
-        [action_update_patch(rpc, patch_id, state = state_str,
+        for patch_id in non_empty(h, patch_ids):
+            action_update_patch(rpc, patch_id, state = state_str,
                 commit = commit_str
-         ) for patch_id in non_empty(h, patch_ids)]
+            )
 
     else:
         sys.stderr.write("Unknown action '%s'\n" % action)