From 958909551d342a50c55c7683e4d02f3943f1d1e1 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Mon, 28 Mar 2016 20:09:51 +0800 Subject: [PATCH] bug_fix --- run_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_server.py b/run_server.py index 02e3fa3d8..365f2636d 100755 --- a/run_server.py +++ b/run_server.py @@ -106,7 +106,7 @@ class EventHandler(ProcessEvent): self.client = client def process_IN_MODIFY(self, event): - self.client.write_message(f.read()) + self.client.write_message(f.read().decode('utf-8', 'replace')) def file_monitor(path='.', client=None):