Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1a04752

Browse filesBrowse files
committed
Py_UseClassExceptionsFlag removed in Python 3.7
Not used since Python 2.
1 parent c654c83 commit 1a04752
Copy full SHA for 1a04752

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Copy file name to clipboardExpand all lines: PythonForDelphi/Components/Sources/Core/PythonEngine.pas
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(* Stefan Hoffmeister (Stefan.Hoffmeister@Econos.de) *)
3232
(* Michiel du Toit (micdutoit@hsbfn.com) - Lazarus Port *)
3333
(* Chris Nicolai (nicolaitanes@gmail.com) *)
34-
(* Kiriakos Vlahos (pyscripter@gmail.com) *)
34+
(* Kiriakos Vlahos (pyscripter@gmail.com) *)
3535
(* Andrey Gruzdev (andrey.gruzdev@gmail.com) *)
3636
(**************************************************************************)
3737
(* This source code is distributed with no WARRANTY, for no reason or use.*)
@@ -3581,9 +3581,9 @@ procedure TPythonInterface.MapDll;
35813581
Py_InteractiveFlag := Import('Py_InteractiveFlag');
35823582
Py_OptimizeFlag := Import('Py_OptimizeFlag');
35833583
Py_NoSiteFlag := Import('Py_NoSiteFlag');
3584-
Py_UseClassExceptionsFlag := Import('Py_UseClassExceptionsFlag');
35853584
Py_FrozenFlag := Import('Py_FrozenFlag');
35863585
if not IsPython3000 then begin
3586+
Py_UseClassExceptionsFlag := Import('Py_UseClassExceptionsFlag');
35873587
Py_TabcheckFlag := Import('Py_TabcheckFlag');
35883588
Py_UnicodeFlag := Import('Py_UnicodeFlag');
35893589
end;
@@ -4723,9 +4723,9 @@ procedure TPythonEngine.AssignPyFlags;
47234723
SetFlag(Py_InteractiveFlag, pfInteractive in FPyFlags);
47244724
SetFlag(Py_OptimizeFlag, pfOptimize in FPyFlags);
47254725
SetFlag(Py_NoSiteFlag, pfNoSite in FPyFlags);
4726-
SetFlag(Py_UseClassExceptionsFlag, pfUseClassExceptionsFlag in FPyFlags);
47274726
SetFlag(Py_FrozenFlag, pfFrozenFlag in FPyFlags);
47284727
if not IsPython3000 then begin
4728+
SetFlag(Py_UseClassExceptionsFlag, pfUseClassExceptionsFlag in FPyFlags);
47294729
SetFlag(Py_UnicodeFlag, pfUnicode in FPyFlags);
47304730
SetFlag(Py_TabcheckFlag, pfTabcheck in FPyFlags);
47314731
end;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.