summaryrefslogtreecommitdiffstats
path: root/PC/winreg.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-09-06 21:34:51 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-09-06 21:34:51 (GMT)
commit0a608fdaac5b4422b9ade6ec7b44182902f2f9ce (patch)
tree80f50c009d21accfd42b8a736ce9761370169995 /PC/winreg.c
parent7e958d1ceb0b92fa7bace7040ce042474d3ea510 (diff)
downloadcpython-0a608fdaac5b4422b9ade6ec7b44182902f2f9ce.zip
cpython-0a608fdaac5b4422b9ade6ec7b44182902f2f9ce.tar.gz
cpython-0a608fdaac5b4422b9ade6ec7b44182902f2f9ce.tar.bz2
fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,
ossaudiodev, & winreg modules to return bytes objects instead of bytearray objects.
Diffstat (limited to 'PC/winreg.c')
-rw-r--r--PC/winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index 1536e17..7d1d816 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -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;
}