From 56c93ac0de151d9c3f68260079c901007a492f35 Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 11 Feb 2013 13:05:55 +0100 Subject: [PATCH 1/3] Update modsde.py --- modsde.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modsde.py b/modsde.py index ce89a97..1dc6581 100644 --- a/modsde.py +++ b/modsde.py @@ -8,7 +8,7 @@ import re import cookielib import xml.etree.ElementTree as ET -class ModsDeChecker: +class ModsDeChecker(object): """ This class returns i3status parsable output of the number of unread posts in any bookmark in the mods.de forums. @@ -95,4 +95,4 @@ class ModsDeChecker: return {'full_text' : '%d new posts in bookmarks' % unread, 'name' : 'modsde', 'urgent' : 'true', - 'color' : self.settings['color']} \ No newline at end of file + 'color' : self.settings['color']} From 45f9ba3c66bf298c3dc66323ab9dfe25f2498991 Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 11 Feb 2013 13:06:12 +0100 Subject: [PATCH 2/3] Update statushandler.py --- statushandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statushandler.py b/statushandler.py index ef29007..560513f 100644 --- a/statushandler.py +++ b/statushandler.py @@ -4,7 +4,7 @@ import sys import json import urllib2 -class I3statusHandler: +class I3statusHandler(object): modules = [] def __init__(self): @@ -69,4 +69,4 @@ def has_internet_connection(): response=urllib2.urlopen('http://74.125.113.99',timeout=1) return True except urllib2.URLError as err: pass - return False \ No newline at end of file + return False From 71c64b2c263e5f727343f6560a13d38ffe04b095 Mon Sep 17 00:00:00 2001 From: enkore Date: Mon, 11 Feb 2013 15:52:52 +0100 Subject: [PATCH 3/3] As far as I can tell that IP address is down (both ping and nmap -Pn confirm this) --- statushandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statushandler.py b/statushandler.py index 560513f..969ab35 100644 --- a/statushandler.py +++ b/statushandler.py @@ -66,7 +66,7 @@ class I3statusHandler(object): def has_internet_connection(): try: - response=urllib2.urlopen('http://74.125.113.99',timeout=1) + response=urllib2.urlopen('http://173.194.69.94',timeout=1) return True except urllib2.URLError as err: pass return False