Skip to content

Commit

Permalink
Some clean UP
Browse files Browse the repository at this point in the history
  • Loading branch information
SaicharanKandukuri committed Sep 15, 2021
1 parent e7ba150 commit 531639b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
Binary file modified python/__pycache__/loginpu.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion python/keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ def handler(signal_received, frame):

print('Running '+sys.argv[0]+'. Press CTRL-C to exit.')
while True:
keep_alive(sys.argv[1], sys.argv[2])
keep_alive(sys.argv[1], sys.argv[2])
9 changes: 0 additions & 9 deletions python/loginpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,3 @@ def login(login_url="http://10.0.0.11:8090/login.xml", username=None, password=N
r = requests.post(url, data=data, headers=headers, verify=False)
return [(r.status_code == 200), r.text, r.status_code]

# def ping_host():
# try:
# req = urllib2.Request("http://10.0.0.11:8090/", headers={'User-Agent':'Mozilla/5.0'})
# urllib2.urlopen(req)
# return True
# except urllib.error.URLError:
# return False

# def ping_internet():
1 change: 0 additions & 1 deletion python/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@
else:
print("Failed to login")
print("Response: "+ str(response))

0 comments on commit 531639b

Please sign in to comment.