PEP8 Formatting update

This commit is contained in:
Vansh Comar 2021-10-19 00:01:28 +05:30
parent 08fe263eae
commit 08d2074697

View File

@ -254,8 +254,10 @@ def search():
# Feature to display IP address
html_soup = bsoup(response, 'html.parser')
if not html_soup.select_one(".EY24We") and html_soup.select_one(".OXXup").get_text().lower()=="all":
if re.search("([^a-z0-9]|^)my *[^a-z0-9] *(ip|internet protocol)(\Z|( *[^a-z0-9] *(((addres|address|adres|adress)|a)? *\Z)))",query.lower()):
if(not html_soup.select_one(".EY24We")
and html_soup.select_one(".OXXup").get_text().lower() == "all"):
if re.search("([^a-z0-9]|^)my *[^a-z0-9] *(ip|internet protocol)" +
"($|( *[^a-z0-9] *(((addres|address|adres|adress)|a)? *$)))", query.lower()):
# HTML IP card tag
ip_tag = html_soup.new_tag("div")