[thorstenp] fix unequal operator

This commit is contained in:
Yann Leboulanger 2008-12-03 21:38:31 +00:00
parent c271d1f15a
commit fe33410b43
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ class P2PClient(IdleObject):
self.Dispatcher._metastream)[:-2]) self.Dispatcher._metastream)[:-2])
def _check_stream_start(self, ns, tag, attrs): def _check_stream_start(self, ns, tag, attrs):
if ns<>NS_STREAMS or tag<>'stream': if ns != NS_STREAMS or tag != 'stream':
self.Connection.DEBUG('Incorrect stream start: (%s,%s).Terminating! ' \ self.Connection.DEBUG('Incorrect stream start: (%s,%s).Terminating! ' \
% (tag, ns), 'error') % (tag, ns), 'error')
self.Connection.disconnect() self.Connection.disconnect()