From 4c45087a5b0d67e451da43854ea5a1e67e1dd3b1 Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 11 Feb 2013 21:25:21 +0100 Subject: [PATCH] ... --- statushandler.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/statushandler.py b/statushandler.py index 326fc12..bb3e6f8 100644 --- a/statushandler.py +++ b/statushandler.py @@ -62,7 +62,7 @@ class I3statusHandler(object): if line.startswith(','): line, prefix = line[1:], ',' - j = [] #json.loads(line) + j = json.loads(line) for module in self.modules: if not module.async: @@ -75,11 +75,3 @@ class I3statusHandler(object): # and echo back new encoded json self.print_line(prefix+json.dumps(j)) - - -def has_internet_connection(): - try: - response=urllib2.urlopen('http://173.194.69.94',timeout=1) - return True - except urllib2.URLError as err: pass - return False