Refactor Code

This commit is contained in:
Narbeh 2018-04-21 11:23:55 +04:30
parent cbd3d8149d
commit ec62105417

View File

@ -110,6 +110,7 @@ def show_result(user_args):
else: else:
print(context) print(context)
def filter_hostname(host): def filter_hostname(host):
"""Remove unused characters and split by address and port.""" """Remove unused characters and split by address and port."""
host = host.replace('http://', '').replace('https://', '').replace('/', '') host = host.replace('http://', '').replace('https://', '').replace('/', '')