summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLuke Hinds <lukehinds@gmail.com>2016-08-16 12:28:17 +0100
committerLuke Hinds <lukehinds@gmail.com>2016-08-16 12:28:17 +0100
commit04ca5bdec649ef54bab06083acbc00347099fbd5 (patch)
tree062954c6f611beabfbd9c77b977747e6ea2be070 /scripts
parent28ef229584b4fd1a358298984f0d07cff2170c21 (diff)
Cleaned up comments and added PEP 257 -- Docstring Conventions
Change-Id: Id7e8e627e3e249948181c09deadf2d114b77dbf7 Signed-off-by: Luke Hinds <lukehinds@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/internet_check.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/internet_check.py b/scripts/internet_check.py
index 1bed50a..7fd3b1b 100644
--- a/scripts/internet_check.py
+++ b/scripts/internet_check.py
@@ -16,6 +16,7 @@ TEST_HOST = "google.com"
def is_connected():
+ """ Perform socket connect to port 80 to verify connectivity """
try:
host = socket.gethostbyname(TEST_HOST)
socket.create_connection((host, 80), 2)