diff --git a/httpoll.py b/httpoll.py index fa19075..a95bb90 100755 --- a/httpoll.py +++ b/httpoll.py @@ -2,7 +2,6 @@ import argparse import requests -import sys from time import time, sleep import urllib3 @@ -21,11 +20,8 @@ def poll(): time_start = time() status, result = "", "" try: - r = requests.get( - url = args.URL, - timeout = 10.0, - verify = False, - proxies = no_proxy) + r = requests.get(url=args.URL, timeout=10.0, + verify=False, proxies=no_proxy) status = "ok" result = str(r) except requests.exceptions.RequestException as e: @@ -62,5 +58,3 @@ if __name__ == "__main__": except KeyboardInterrupt: exit() - -