This commit is contained in:
liuzheng712
2016-03-28 20:09:51 +08:00
parent b132a0c0b5
commit 958909551d

View File

@@ -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):