From 620f3cc801bd3da168c09bb71412144e966cb2d7 Mon Sep 17 00:00:00 2001 From: James Andrewartha Date: Mon, 26 Oct 2009 11:04:14 +0800 Subject: [PATCH] it's always good to assign variables before use --- client-xmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-xmpp.py b/client-xmpp.py index 6eebce7..7d8d9dd 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -48,8 +48,8 @@ class Door(object): syslog.syslog(142, "get_status failed: %s" % e) pass - self.state_changed(new_state) self.doorname = doorname + self.state_changed(new_state) def state_changed(self, new_state): print "xmpp state change detected for %s from %i to %i" % (self.doorname, self.state, newstate) -- 2.20.1