~pymsn/pymsn/pymsn-0.3

« back to all changes in this revision

Viewing changes to pymsn/switchboard_manager.py

  • Committer: Ali Sabil
  • Date: 2008-01-28 19:18:05 UTC
  • Revision ID: ali.sabil@gmail.com-20080128191805-3h3730dpe8wmm82e
- Fixed iterating over the switchboard handlers and changing the handlers set (Stéphan Kochen)

Show diffs side-by-side

added added

removed removed

Lines of Context:
338
338
        if switchboard in self._switchboards.keys():
339
339
            handlers = self._switchboards[switchboard]
340
340
            handlers_class = [type(handler) for handler in handlers]
341
 
            for handler in handlers:
 
341
            for handler in list(handlers):
342
342
                if not handler._can_handle_message(message, handler):
343
343
                    continue
344
344
                handler._on_message_received(message)