2nd try to merge sim_physics with trunk rev 19825
[blender.git] / source / gameengine / GameLogic / SCA_KeyboardSensor.cpp
index c946156283f467e6ae7b8023793723baf0d30188..d56e5fe29dc301e043de63de0349f6ed1a08825d 100644 (file)
@@ -590,7 +590,7 @@ KX_PYMETHODDEF_DOC_O(SCA_KeyboardSensor, getKeyStatus,
 "\tGet the given key's status (KX_NO_INPUTSTATUS, KX_JUSTACTIVATED, KX_ACTIVE or KX_JUSTRELEASED).\n")
 {
        if (!PyInt_Check(value)) {
-               PyErr_SetString(PyExc_ValueError, "sensor.getKeyStatus(int): Keyboard Sensor, expected an int");
+               PyErr_SetString(PyExc_ValueError, "getKeyStatus expected an int");
                return NULL;
        }
        
@@ -598,7 +598,7 @@ KX_PYMETHODDEF_DOC_O(SCA_KeyboardSensor, getKeyStatus,
        
        if ((keycode < SCA_IInputDevice::KX_BEGINKEY)
                || (keycode > SCA_IInputDevice::KX_ENDKEY)){
-               PyErr_SetString(PyExc_AttributeError, "sensor.getKeyStatus(int): Keyboard Sensor, invalid keycode specified!");
+               PyErr_SetString(PyExc_AttributeError, "invalid keycode specified!");
                return NULL;
        }