Skip to content

Commit b72e618

Browse files
author
pyscripter
committed
Minor change to previous commit
1 parent 8ddf2df commit b72e618

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,8 +3553,10 @@ procedure TPythonInterface.MapDll;
35533553
if not IsPython3000 then begin
35543554
Py_TabcheckFlag := Import('Py_TabcheckFlag');
35553555
Py_UnicodeFlag := Import('Py_UnicodeFlag');
3556-
Py_DivisionWarningFlag := Import('Py_DivisionWarningFlag');
35573556
end;
3557+
if (fMajorVersion < 3) or ((fMajorVersion = 3) and (fMinorVersion <3)) then
3558+
Py_DivisionWarningFlag := Import('Py_DivisionWarningFlag');
3559+
35583560
Py_IgnoreEnvironmentFlag := Import('Py_IgnoreEnvironmentFlag');
35593561

35603562
//_PySys_TraceFunc := Import('_PySys_TraceFunc');

0 commit comments

Comments
 (0)