8000 Fix spelling of dup/close. · markshannon/New-C-API-for-Python@7eb0461 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7eb0461

Browse files
committed
Fix spelling of dup/close.
1 parent 033139f commit 7eb0461

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/PyAPI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
PyRef PyRef_INVALID;
44
PyExceptionRef PyRef_NO_EXCEPTION;
55

6-
PyRef Py_DupRef(PyRef ref);
7-
PyRef Py_CloseRef(PyRef ref);
6+
PyRef PyRef_Dup(PyRef ref);
7+
PyRef PyRef_Close(PyRef ref);
88

99
/* Tuple */
1010
PyTupleRef PyApi_Tuple_Empty(PyContext ctx);

api/generate/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def generate_api_func(namespace, func):
8989
print("PyRef PyRef_INVALID;")
9090
print("PyExceptionRef PyRef_NO_EXCEPTION;\n")
9191

92-
print("PyRef Py_DupRef(PyRef ref);")
93-
print("PyRef Py_CloseRef(PyRef ref);")
92+
print("PyRef PyRef_Dup(PyRef ref);")
93+
print("PyRef PyRef_Close(PyRef ref);")
9494

9595
for name, obj in api.__dict__.items():
9696
if isinstance(obj, FunctionType):

0 commit comments

Comments
 (0)
0