We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ddf2df commit b72e618Copy full SHA for b72e618
PythonForDelphi/Components/Sources/Core/PythonEngine.pas
@@ -3553,8 +3553,10 @@ procedure TPythonInterface.MapDll;
3553
if not IsPython3000 then begin
3554
Py_TabcheckFlag := Import('Py_TabcheckFlag');
3555
Py_UnicodeFlag := Import('Py_UnicodeFlag');
3556
- Py_DivisionWarningFlag := Import('Py_DivisionWarningFlag');
3557
end;
+ if (fMajorVersion < 3) or ((fMajorVersion = 3) and (fMinorVersion <3)) then
3558
+ Py_DivisionWarningFlag := Import('Py_DivisionWarningFlag');
3559
+
3560
Py_IgnoreEnvironmentFlag := Import('Py_IgnoreEnvironmentFlag');
3561
3562
//_PySys_TraceFunc := Import('_PySys_TraceFunc');
0 commit comments