mirror of
https://github.com/ihabunek/toot
synced 2025-01-10 16:52:40 +01:00
Remove unused code
This commit is contained in:
parent
e1be3a68bb
commit
965ffa1312
@ -73,19 +73,6 @@ def format_content(content):
|
|||||||
first = False
|
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"
|
EOF_KEY = "Ctrl-Z" if os.name == 'nt' else "Ctrl-D"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user