summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-25 09:10:31 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-10-25 09:10:31 +0000
commitd6e3788305a6e0c68156b00a1ae5c0f4aee9aff7 (patch)
tree40b50dbc51875a07f0dfb9bd9be7ff857ed34dfb
parentbc3dc5c604de099256d1a1b251b02dba751326cb (diff)
downloadpoezio-d6e3788305a6e0c68156b00a1ae5c0f4aee9aff7.tar.gz
poezio-d6e3788305a6e0c68156b00a1ae5c0f4aee9aff7.tar.bz2
poezio-d6e3788305a6e0c68156b00a1ae5c0f4aee9aff7.tar.xz
poezio-d6e3788305a6e0c68156b00a1ae5c0f4aee9aff7.zip
typo
-rw-r--r--src/gui.py4
-rw-r--r--src/poezio.py6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/gui.py b/src/gui.py
index bbed0c98..ec7480bd 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -171,6 +171,8 @@ class Gui(object):
self.refresh_window()
def on_got_offline(self, presence):
+ from common import debug
+ debug('OFFLINE: %s\n' % presence)
jid = presence['from']
contact = self.roster.get_contact_by_jid(jid.bare)
if not contact:
@@ -183,6 +185,8 @@ class Gui(object):
self.refresh_window()
def on_got_online(self, presence):
+ from common import debug
+ debug('ONLINE: %s\n' % presence)
jid = presence['from']
contact = self.roster.get_contact_by_jid(jid.bare)
if not contact:
diff --git a/src/poezio.py b/src/poezio.py
index 6c707714..a46381f9 100644
--- a/src/poezio.py
+++ b/src/poezio.py
@@ -39,9 +39,9 @@ class MyStdErr(object):
"""
self.old_stderr = sys.stderr
sys.stderr = fd
- def restaure(self):
+ def restore(self):
"""
- Restaure the good ol' sys.stderr, because we need
+ Restore the good ol' sys.stderr, because we need
it in order to print the tracebacks
"""
sys.stderr.close()
@@ -54,7 +54,7 @@ def exception_handler(type_, value, trace):
on any traceback: exit ncurses and print the traceback
then exit the program
"""
- my_stderr.restaure()
+ my_stderr.restore()
try:
curses.endwin()
curses.echo()