From c359d1e264ab16f7300d4d27294bddf736a88c62 Mon Sep 17 00:00:00 2001 From: kelianchun_miller <360271747@qq.com> Date: Sun, 22 Nov 2015 20:20:04 +0800 Subject: [PATCH] update connect.py --- connect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/connect.py b/connect.py index 548482ed1..b3440a628 100644 --- a/connect.py +++ b/connect.py @@ -96,7 +96,7 @@ class Tty(object): return False @staticmethod - def deal_command(str_r, ssh): + def deal_command(str_r): """ 处理命令中特殊字符 """ @@ -384,11 +384,11 @@ class SshTty(Tty): match = pattern.search(chan_str) if match: VIM_FLAG = False - data = self.deal_command(data, self.ssh) + data = self.deal_command(data) if len(data) > 0: TtyLog(log=log, datetime=datetime.datetime.now(), cmd=data).save() else: - data = self.deal_command(data, self.ssh) + data = self.deal_command(data) if len(data) > 0: TtyLog(log=log, datetime=datetime.datetime.now(), cmd=data).save() data = ''