8000 fixup! reworked `PythonException`: · pythonnet/pythonnet@651d145 · GitHub
[go: up one dir, main page]

Skip to content

Commit 651d145

Browse files
committed
fixup! reworked PythonException:
1 parent 6a951b1 commit 651d145

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/runtime/pythonexception.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ public PythonException Clone()
354354
internal bool Is(IntPtr type)
355355
{
356356
return Runtime.PyErr_GivenExceptionMatches(
357-
(Value ?? Type).Reference,
358-
new BorrowedReference(type)) != 0;
357+
given: (Value ?? Type).Reference,
358+
typeOrTypes: new BorrowedReference(type)) != 0;
359359
}
360360

361361
private static void CheckRuntimeIsRunning()

src/runtime/runtime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2113,7 +2113,7 @@ internal static void PyErr_SetString(IntPtr ob, string message)
21132113
internal static int PyErr_ExceptionMatches(IntPtr exception) => Delegates.PyErr_ExceptionMatches(exception);
21142114

21152115

2116-
internal static int PyErr_GivenExceptionMatches(BorrowedReference ob, BorrowedReference val) => Delegates.PyErr_GivenExceptionMatches(ob, val);
2116+
internal static int PyErr_GivenExceptionMatches(BorrowedReference given, BorrowedReference typeOrTypes) => Delegates.PyErr_GivenExceptionMatches(given, typeOrTypes);
21172117

21182118

21192119
internal static void PyErr_NormalizeException(ref NewReference type, ref NewReference val, ref NewReference tb) => Delegates.PyErr_NormalizeException(ref type, ref val, ref tb);

0 commit comments

Comments
 (0)
0