From 1e14bee9074f31f49f6216de355fc542ae74d23a Mon Sep 17 00:00:00 2001 From: ahxxm Date: Tue, 6 Sep 2016 11:20:04 +0800 Subject: [PATCH] quote condition judgement --- shadowsocks/asyncdns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 2fa2887..91601ea 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -276,7 +276,7 @@ class DNSResolver(object): content = f.readlines() for line in content: line = line.strip() - if not line and line.startswith(b'nameserver'): + if not (line and line.startswith(b'nameserver')): continue parts = line.split()