Skip to content

Commit

Permalink
Worked on Python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Sep 27, 2023
1 parent 5ce91e3 commit 075c215
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Build from source using tox.
name: build_tox
# Build wheel from source using tox.
name: build_wheel
on: [push, pull_request]
permissions: read-all
jobs:
build_tox:
build_wheel:
runs-on: ubuntu-22.04
strategy:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions pylnk/pylnk_file_object_io_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ int pylnk_file_object_io_handle_free(
Py_DecRef(
( *file_object_io_handle )->file_object );

PyGILState_Release(
gil_state );

PyMem_Free(
*file_object_io_handle );

*file_object_io_handle = NULL;

PyGILState_Release(
gil_state );
}
return( 1 );
}
Expand Down
10 changes: 0 additions & 10 deletions pylnk/pylnk_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ PyObject *pylnk_string_new_from_utf8_rfc2279(
goto on_error;
}
}
if( PyUnicode_READY(
string_object ) == -1 )
{
PyErr_Format(
PyExc_RuntimeError,
"%s: unable to finalize string object.",
function );

goto on_error;
}
PyMem_Free(
utf32_string );

Expand Down

0 comments on commit 075c215

Please sign in to comment.