]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/pwclient
pwclient: Add newline to 'no hash' message
[patchwork] / apps / patchwork / bin / pwclient
index e25212a8a4088c4def4f608071e971c63db997e9..863c1aeb00626b4396513a34002ba869fc363106 100755 (executable)
@@ -384,7 +384,7 @@ def main():
     if hash_str:
         patch_id = patch_id_from_hash(rpc, hash_str)
         if patch_id is None:
-            sys.stderr.write("No patch has the hash provided")
+            sys.stderr.write("No patch has the hash provided\n")
             sys.exit(1)
 
 
@@ -408,7 +408,7 @@ def main():
 
         s = rpc.patch_get_mbox(patch_id)
         if len(s) > 0:
-            print s
+            print unicode(s).encode("utf-8")
 
     elif action == 'get' or action == 'save':
         try: