mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,
ossaudiodev, & winreg modules to return bytes objects instead of bytearray objects.
This commit is contained in:
parent
7e958d1ceb
commit
0a608fdaac
6 changed files with 21 additions and 18 deletions
|
@ -896,7 +896,7 @@ Reg2Py(BYTE *retDataBuf, DWORD retDataSize, DWORD typ)
|
|||
obData = Py_None;
|
||||
}
|
||||
else
|
||||
obData = PyByteArray_FromStringAndSize(
|
||||
obData = PyBytes_FromStringAndSize(
|
||||
(char *)retDataBuf, retDataSize);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue