Make look nice

This commit is contained in:
Larry Kim 2013-05-14 17:51:46 +09:00
parent 50fb61f03c
commit 603e91c0e2

View File

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