From ff3d0abec672b2b3f03ae079d6e71324f1da8e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E4=B8=96=E9=BE=99?= Date: Fri, 21 Oct 2016 16:44:29 +0800 Subject: [PATCH] delete colorlogs in window system --- weixin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weixin.py b/weixin.py index 714d7b1..bc1f4a2 100755 --- a/weixin.py +++ b/weixin.py @@ -1151,10 +1151,10 @@ if sys.stdout.encoding == 'cp936': if __name__ == '__main__': - logger = logging.getLogger(__name__) - import coloredlogs - coloredlogs.install(level='DEBUG') + if not sys.platform.startswith('win'): + import coloredlogs + coloredlogs.install(level='DEBUG') webwx = WebWeixin() webwx.start()