From 0684ec1d3d9d7a006b9f18c5a6b3a3ad4a91bb06 Mon Sep 17 00:00:00 2001
From: Stephan Erb <steve-e@h3c.de>
Date: Thu, 6 Nov 2008 08:19:24 +0000
Subject: [PATCH] Disable assertions. Remove a statement which is not supported
 by python24.

---
 launch.sh            | 2 +-
 src/roster_window.py | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/launch.sh b/launch.sh
index f61870f699..bcb9685534 100755
--- a/launch.sh
+++ b/launch.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 cd "$(dirname $0)/src"
-exec python -t gajim.py $@
+exec python -OOt gajim.py $@
diff --git a/src/roster_window.py b/src/roster_window.py
index 535086bfac..e30492daaf 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -404,9 +404,6 @@ class RosterWindow:
 					gajim.groups[account][group] = {'expand': is_expanded}
 
 		assert len(added_iters), '%s has not been added to roster!' % contact.jid
-#		assert all(self.model[titer][C_JID] == contact.jid and \
-#			self.model[titer][C_ACCOUNT] == account for titer in added_iters), \
-#			"Iters invalidated for %s" % contact.jid
 		return added_iters
 
 	def _remove_entity(self, contact, account, groups=None):
-- 
GitLab