Permalink
Browse files

Example 26: Initialize the xmpp object to None so the property always…

… exists.

This is not functionally different, but it will allow us to keep the upcoming code neat and tidy.
  • Loading branch information...
1 parent 58dd866 commit e9a5f8c66cb0d303274f1c2fffc3c174bbbc9e04 Dusty Phillips committed Jul 5, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 orkiv/__main__.py
View
@@ -62,6 +62,9 @@ def login(self):
class Orkiv(App):
+ def __init__(self):
+ super(Orkiv, self).__init__()
+ self.xmpp = None
def connect_to_jabber(self, jabber_id, password):
self.xmpp = ClientXMPP(jabber_id, password)

0 comments on commit e9a5f8c

Please sign in to comment.