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 = {}