summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-02 01:49:11 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-09-02 01:49:11 +0000
commit3b0f78615cf5b7a772646fdd2c692b2ce1e23c9c (patch)
tree078380b5e7839a971f66b38b37b6460b976fb1c9
parent1ef7d588265a94ae2cd8775b0c124041b0e0d7c4 (diff)
downloadpoezio-3b0f78615cf5b7a772646fdd2c692b2ce1e23c9c.tar.gz
poezio-3b0f78615cf5b7a772646fdd2c692b2ce1e23c9c.tar.bz2
poezio-3b0f78615cf5b7a772646fdd2c692b2ce1e23c9c.tar.xz
poezio-3b0f78615cf5b7a772646fdd2c692b2ce1e23c9c.zip
use reindent.py
-rw-r--r--src/gui.py6
-rw-r--r--src/theme.py3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gui.py b/src/gui.py
index 3385d971..51101a3e 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -195,13 +195,13 @@ class Gui(object):
"""
from_nick = presence['from'].resource
from_room = presence['from'].bare
- room = self.get_room_by_name(from_room)
+ room = self.get_room_by_name(from_room)
code = presence.find('{jabber:client}status')
status_codes = set([s.attrib['code'] for s in presence.findall('{http://jabber.org/protocol/muc#user}x/{http://jabber.org/protocol/muc#user}status')])
# Check if it's not an error presence.
if presence['type'] == 'error':
return self.room_error(presence, from_room)
- if not room:
+ if not room:
return
msg = None
affiliation = presence['muc']['affiliation']
@@ -645,7 +645,7 @@ class Gui(object):
room_from = message.getMucroom()
if nick_from == room_from:
nick_from = None
- room = self.get_room_by_name(room_from)
+ room = self.get_room_by_name(room_from)
if (self.ignores.has_key(room_from)) and (nick_from in self.ignores[room_from]):
return
room = self.get_room_by_name(room_from)
diff --git a/src/theme.py b/src/theme.py
index b51371fa..862a8655 100644
--- a/src/theme.py
+++ b/src/theme.py
@@ -162,6 +162,3 @@ if __name__ == '__main__':
s.refresh()
s.getch()
s.endwin()
-
-
-