From 779acb6a173534daa53be36953b3e90c09c059c6 Mon Sep 17 00:00:00 2001 From: mtunique Date: Wed, 24 Feb 2016 18:13:28 +0800 Subject: [PATCH] fix indentation --- weixin.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/weixin.py b/weixin.py index cb9d182..fd5a36d 100755 --- a/weixin.py +++ b/weixin.py @@ -650,16 +650,16 @@ class WebWeixin(object): @catchKeyboardInterrupt def start(self): self._echo('[*] 微信网页版 ... 开动'); print; logging.debug('[*] 微信网页版 ... 开动') - while True: - self._run('[*] 正在获取 uuid ... ', self.getUUID) - self._echo('[*] 正在获取二维码 ... 成功'); print; logging.debug('[*] 微信网页版 ... 开动'); self.genQRCode() - print '[*] 请使用微信扫描二维码以登录 ... ' - if not self.waitForLogin(): - continue + while True: + self._run('[*] 正在获取 uuid ... ', self.getUUID) + self._echo('[*] 正在获取二维码 ... 成功'); print; logging.debug('[*] 微信网页版 ... 开动'); self.genQRCode() + print '[*] 请使用微信扫描二维码以登录 ... ' + if not self.waitForLogin(): + continue print '[*] 请在手机上点击确认以登录 ... ' - if not self.waitForLogin(0): - continue - break + if not self.waitForLogin(0): + continue + break self._run('[*] 正在登录 ... ', self.login) self._run('[*] 微信初始化 ... ', self.webwxinit)