From f49dcb0d91031c75231b4659f141aece5a43f8d1 Mon Sep 17 00:00:00 2001 From: Marcelo Glezer Date: Fri, 6 Feb 2015 00:59:05 -0300 Subject: removed str() cast and changed 'failed copy trying save instead' message --- libmproxy/console/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 6141bc1c..c0929d58 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -224,7 +224,7 @@ def copy_message( k, master, state, message): pyperclip.copy(message.get_decoded_content()) except TypeError: master.prompt_onekey( - "Content is binary do you want to save it to a file instead?", + "Cannot copy binary data to clipboard. Save as file?", ( ("yes", "y"), ("no", "n"), @@ -236,7 +236,7 @@ def copy_message( k, master, state, message): ) elif k == "h": try: - pyperclip.copy(str(message.headers)) + pyperclip.copy(message.headers) except TypeError: master.statusbar.message("Error converting headers to text") elif k == "u": -- cgit v1.2.3