From 603e91c0e28ac59b0a2f0809a30782124994963e Mon Sep 17 00:00:00 2001 From: Larry Kim Date: Tue, 14 May 2013 17:51:46 +0900 Subject: [PATCH] Make look nice --- whois/parser.py | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/whois/parser.py b/whois/parser.py index f0721ea..d34c7c1 100644 --- a/whois/parser.py +++ b/whois/parser.py @@ -43,43 +43,28 @@ class Parser(object): self.parseConf = self.parseConf.get("parse") - # NO "parse" in the tld config AND YES regex for specified server in default conf - + # THERE IS NO "parse" in the tld config AND THERE IS regex for specified server in default conf if not self.parseConf and whoisServer not in self.parseDefaultConf: self.parseConf = self.parseDefaultConf.get("default") - # END - # - # NO "parse" in the tld config - + # THERE IS NO "parse" in the tld config elif not self.parseConf: self.parseConf = self.parseDefaultConf.get(whoisServer) - # END - # - # YES "parse" in the tld config AND YES regex for specified server - + # THERE IS "parse" in the tld config AND THERE IS regex for specified server elif self.whoisServer in self.parseConf: self.parseConf = self.parseConf.get(self.whoisServer) - # END - # - # YES "parse" in the tld config AND YES "default" regex in the tld config AND - # NO regex for specified server - + # THERE IS "parse" in the tld config AND THERE IS "default" regex in the tld config AND + # THERE IS NO regex for specified server elif "default" in self.parseConf: self.parseConf = self.parseConf.get("default") - # END - # - # YES "parse" in the tld config AND NO "default" regex in the tld config + # THEE IS "parse" in the tld config AND THERE IS NO "default" regex in the tld config # MAYBE empty file? - else: self.parseConf = self.parseDefaultConf.get("default") - # END - # Check for LoadConf _parseConf = self.parseConf self.parseConf = {}