Skip to content

Commit c251661

Browse files
author
pyscripter
committed
Minor change to previous commit
git-svn-id: http://python4delphi.googlecode.com/svn/trunk@94 e41fde0b-5a56-0410-8151-d5964863ceb2
1 parent 92c08f8 commit c251661

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)