Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d4bc42

Browse files
committed
Closes #23026: Documentation improvements and code formatting
1 parent 74f2fe6 commit 4d4bc42

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

Doc/library/winreg.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,14 @@ For more information, see `Registry Value Types
661661

662662
A 64-bit number.
663663

664+
.. versionadded:: 3.6
665+
664666
.. data:: REG_QWORD_LITTLE_ENDIAN
665667

666668
A 64-bit number in little-endian format. Equivalent to :const:`REG_QWORD`.
667669

670+
.. versionadded:: 3.6
671+
668672
.. data:: REG_RESOURCE_LIST
669673

670674
A device-driver resource list.

Doc/whatsnew/3.6.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ The "Object allocated at" traceback is new and only displayed if
424424
winreg
425425
------
426426

427-
The :func:`QueryValueEx <winreg.QueryValueEx>` function now returns
428-
integer values for registry type ``REG_QWORD``.
427+
Added the 64-bit integer type :data:`REG_QWORD <winreg.REG_QWORD>`.
429428
(Contributed by Clement Rouault in :issue:`23026`.)
430429

431430

PC/winreg.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
549549
if (value != Py_None && !PyLong_Check(value))
550550
return FALSE;
551551
*retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1);
552-
if (*retDataBuf==NULL){
552+
if (*retDataBuf == NULL){
553553
PyErr_NoMemory();
554554
return FALSE;
555555
}
@@ -567,7 +567,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
567567
if (value != Py_None && !PyLong_Check(value))
568568
return FALSE;
569569
*retDataBuf = (BYTE *)PyMem_NEW(DWORD64, 1);
570-
if (*retDataBuf==NULL){
570+
if (*retDataBuf == NULL){
571571
PyErr_NoMemory();
572572
return FALSE;
573573
}
@@ -637,7 +637,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
637637
*retDataSize = size + 2;
638638
*retDataBuf = (BYTE *)PyMem_NEW(char,
639639
*retDataSize);
640-
if (*retDataBuf==NULL){
640+
if (*retDataBuf == NULL){
641641
PyErr_NoMemory();
642642
return FALSE;
643643
}
@@ -683,7 +683,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize)
683683
return FALSE;
684684

685685
*retDataBuf = (BYTE *)PyMem_NEW(char, view.len);
686-
if (*retDataBuf==NULL){
686+
if (*retDataBuf == NULL){
687687
PyBuffer_Release(&view);
688688
PyErr_NoMemory();
689689
return FALSE;

0 commit comments

Comments
 (0)