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")
|
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:
|
if not self.parseConf and whoisServer not in self.parseDefaultConf:
|
||||||
self.parseConf = self.parseDefaultConf.get("default")
|
self.parseConf = self.parseDefaultConf.get("default")
|
||||||
|
|
||||||
# END
|
# THERE IS NO "parse" in the tld config
|
||||||
#
|
|
||||||
# NO "parse" in the tld config
|
|
||||||
|
|
||||||
elif not self.parseConf:
|
elif not self.parseConf:
|
||||||
self.parseConf = self.parseDefaultConf.get(whoisServer)
|
self.parseConf = self.parseDefaultConf.get(whoisServer)
|
||||||
|
|
||||||
# END
|
# THERE IS "parse" in the tld config AND THERE IS regex for specified server
|
||||||
#
|
|
||||||
# YES "parse" in the tld config AND YES regex for specified server
|
|
||||||
|
|
||||||
elif self.whoisServer in self.parseConf:
|
elif self.whoisServer in self.parseConf:
|
||||||
self.parseConf = self.parseConf.get(self.whoisServer)
|
self.parseConf = self.parseConf.get(self.whoisServer)
|
||||||
|
|
||||||
# END
|
# THERE IS "parse" in the tld config AND THERE IS "default" regex in the tld config AND
|
||||||
#
|
# THERE IS NO regex for specified server
|
||||||
# YES "parse" in the tld config AND YES "default" regex in the tld config AND
|
|
||||||
# NO regex for specified server
|
|
||||||
|
|
||||||
elif "default" in self.parseConf:
|
elif "default" in self.parseConf:
|
||||||
self.parseConf = self.parseConf.get("default")
|
self.parseConf = self.parseConf.get("default")
|
||||||
|
|
||||||
# END
|
# THEE IS "parse" in the tld config AND THERE IS NO "default" regex in the tld config
|
||||||
#
|
|
||||||
# YES "parse" in the tld config AND NO "default" regex in the tld config
|
|
||||||
# MAYBE empty file?
|
# MAYBE empty file?
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.parseConf = self.parseDefaultConf.get("default")
|
self.parseConf = self.parseDefaultConf.get("default")
|
||||||
|
|
||||||
# END
|
|
||||||
|
|
||||||
# Check for LoadConf
|
# Check for LoadConf
|
||||||
_parseConf = self.parseConf
|
_parseConf = self.parseConf
|
||||||
self.parseConf = {}
|
self.parseConf = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user