@@ -390,12 +390,14 @@ cdef int __python_obj_to_int(obj, func_name):
390
390
391
391
cdef void __check_positive_num_threads(int p, func_name):
392
392
if p <= 0 :
393
- warnings.warn(" Non-positive argument of " + func_name + " is being ignored, number of threads will not be changed" )
393
+ warnings.warn(" Non-positive argument of " + func_name +
394
+ " is being ignored, number of threads will not be changed" )
394
395
395
396
396
397
cdef void __check_non_negative_num_threads(int p, func_name):
397
398
if p < 0 :
398
- warnings.warn(" Non-positive argument of " + func_name + " is being ignored, number of threads will not be changed" )
399
+ warnings.warn(" Non-positive argument of " + func_name +
400
+ " is being ignored, number of threads will not be changed" )
399
401
400
402
401
403
cdef inline int __mkl_str_to_int(variable, possible_variables_dict):
@@ -404,7 +406,8 @@ cdef inline int __mkl_str_to_int(variable, possible_variables_dict):
404
406
if possible_variables_dict is None :
405
407
raise RuntimeError (" Dictionary mapping possible variable value to internal code is missing" )
406
408
if variable not in possible_variables_dict:
407
- raise ValueError (' Variable: <' + str (variable) + ' > not in ' + str (possible_variables_dict))
409
+ raise ValueError (' Variable: <' + str (variable) + ' > not in ' +
410
+ str (possible_variables_dict.keys()))
408
411
409
412
return possible_variables_dict[variable]
410
413
@@ -414,7 +417,8 @@ cdef __mkl_int_to_str(int mkl_int_variable, possible_variables_dict):
414
417
raise RuntimeError (" Dictionary mapping possible internal code to output string is missing" )
415
418
416
419
if mkl_int_variable not in possible_variables_dict:
417
- raise ValueError (' Variable: <' + str (mkl_int_variable) + ' > not in ' + str (possible_variables_dict))
420
+ raise ValueError (' Variable: <' + str (mkl_int_variable) + ' > not in ' +
421
+ str (possible_variables_dict.keys()))
418
422
419
423
return possible_variables_dict[mkl_int_variable]
420
424
0 commit comments