Skip to content

Commit 4148ec5

Browse files
committed
update to use PyUnicode_FromAwsByteCursor instead
1 parent 7e5eea7 commit 4148ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PyObject *aws_py_get_platform_build_os_string(PyObject *self, PyObject *args) {
3131
(void)args;
3232

3333
struct aws_byte_cursor os_string = aws_get_platform_build_os_string();
34-
return PyUnicode_FromStringAndSize((const char *)os_string.ptr, os_string.len);
34+
return PyUnicode_FromAwsByteCursor(&os_string);
3535
}
3636

3737
PyObject *aws_py_thread_join_all_managed(PyObject *self, PyObject *args) {

0 commit comments

Comments
 (0)