From 05d70a31da6efdf8753fe2d8fbc8d82ca81433c1 Mon Sep 17 00:00:00 2001 From: agusti Date: Fri, 12 Jul 2013 00:02:34 +0200 Subject: [PATCH 1/2] #8 UnicodeEncodeError after latest Sublime update --- SimpleSync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleSync.py b/SimpleSync.py index f5c902b..2de0705 100644 --- a/SimpleSync.py +++ b/SimpleSync.py @@ -82,7 +82,7 @@ def run(self): print("SimpleSync: ", self.local_file, " -> ", self.remote_file) for line in runProcess(['cp', self.local_file, self.remote_file]): - print(line, end='') + print(line.encode('ascii', 'ignore'), end='') # # Subclass sublime_plugin.EventListener From b287bc548420ed832fd46a07f8c69de7e68db9c9 Mon Sep 17 00:00:00 2001 From: agusti Date: Fri, 12 Jul 2013 00:10:07 +0200 Subject: [PATCH 2/2] #8 UnicodeEncodeError after latest Sublime update --- SimpleSync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SimpleSync.py b/SimpleSync.py index 2de0705..159ab11 100644 --- a/SimpleSync.py +++ b/SimpleSync.py @@ -67,7 +67,7 @@ def run(self): print("SimpleSync: ", self.local_file, " -> ", remote) for line in runProcess(["scp", "-r", "-P", str(self.port) , self.local_file, remote]): - print(line, end='') + print(line.encode('ascii', 'ignore'), end='') # # LocalCopier does local copying using threading to avoid UI blocking