1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-22 23:08:17 +01:00

Remove unused code

This commit is contained in:
Ivan Habunek 2024-01-03 12:08:31 +01:00
parent e1be3a68bb
commit 965ffa1312
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -73,19 +73,6 @@ def format_content(content):
first = False
def domain_exists(name):
try:
socket.gethostbyname(name)
return True
except OSError:
return False
def assert_domain_exists(domain):
if not domain_exists(domain):
raise ConsoleError("Domain {} not found".format(domain))
EOF_KEY = "Ctrl-Z" if os.name == 'nt' else "Ctrl-D"