def _CheckCursor(cursor):
 return _ValidateString(cursor, 'cursor', _MAXIMUM_CURSOR_LENGTH, empty_ok=True)

def _CheckCursor ( cursor ) : return _ValidateString ( cursor , 'cursor' , _MAXIMUM_CURSOR_LENGTH , empty_ok = True )
checks the cursor if specified is a string which is not too long .