Source

pygame / pygame / joystick.py

Diff from to

pygame/joystick.py

             raise pygame.base.error, 'Invalid joystick device number'
 
         self._id = id
+        self._device = None
 
     def init(self):
         '''Initialize the Joystick.