Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit651d145

Browse files
committed
fixup! reworkedPythonException:
1 parent6a951b1 commit651d145

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
internalboolIs(IntPtrtype)
355355
{
356356
returnRuntime.PyErr_GivenExceptionMatches(
357-
(Value??Type).Reference,
358-
newBorrowedReference(type))!=0;
357+
given:(Value??Type).Reference,
358+
typeOrTypes:newBorrowedReference(type))!=0;
359359
}
360360

361361
privatestaticvoidCheckRuntimeIsRunning()

‎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
internalstaticintPyErr_ExceptionMatches(IntPtrexception)=>Delegates.PyErr_ExceptionMatches(exception);
21142114

21152115

2116-
internalstaticintPyErr_GivenExceptionMatches(BorrowedReferenceob,BorrowedReferenceval)=>Delegates.PyErr_GivenExceptionMatches(ob,val);
2116+
internalstaticintPyErr_GivenExceptionMatches(BorrowedReferencegiven,BorrowedReferencetypeOrTypes)=>Delegates.PyErr_GivenExceptionMatches(given,typeOrTypes);
21172117

21182118

21192119
internalstaticvoidPyErr_NormalizeException(refNewReferencetype,refNewReferenceval,refNewReferencetb)=>Delegates.PyErr_NormalizeException(reftype,refval,reftb);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp