mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Use break instead of goto
This commit is contained in:
parent
4a36d9d761
commit
406a8478cd
|
@ -347,22 +347,21 @@ load_tkinter_funcs(void) {
|
||||||
if (!found_tcl) {
|
if (!found_tcl) {
|
||||||
found_tcl = get_tcl(hMods[i]);
|
found_tcl = get_tcl(hMods[i]);
|
||||||
if (found_tcl == -1) {
|
if (found_tcl == -1) {
|
||||||
goto exit;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found_tk) {
|
if (!found_tk) {
|
||||||
found_tk = get_tk(hMods[i]);
|
found_tk = get_tk(hMods[i]);
|
||||||
if (found_tk == -1) {
|
if (found_tk == -1) {
|
||||||
goto exit;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (found_tcl && found_tk) {
|
if (found_tcl && found_tk) {
|
||||||
goto exit;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
|
||||||
free(hMods);
|
free(hMods);
|
||||||
if (found_tcl != 1) {
|
if (found_tcl != 1) {
|
||||||
PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
|
PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user