Commits

Szymon Wróblewski  committed eb5566e

small fixes

  • Participants
  • Parent commits 252264d

Comments (0)

Files changed (1)

File pygame_network/server.py

                 self.peers[event.peer.data]._receive(event.packet.data, event.channelID)
             event = host.check_events()
 
-    def connections(self, exclude=None):
+    def connections(self, exclude=[]):
         if exclude is None:
             return self.peers.itervalues()
         else:
             return (c for c in self.peers.itervalues() if c not in exclude)
 
-    def receivers(self, exclude=None):
+    def receivers(self, exclude=[]):
         return (c._receivers[0] for c in self.peers.itervalues() if c not in exclude)