Make look nice
This commit is contained in:
parent
50fb61f03c
commit
603e91c0e2
@ -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 = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user