Skip to content

Commit acc01c7

Browse files
committed
Make reserved keyword-only for OpenKeyEx
1 parent 7900598 commit acc01c7

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Doc/library/winreg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ This module offers the following functions:
363363
*reserved* is deprecated and will be removed in the future.
364364
Please use :func:`OpenKeyEx` instead.
365365

366-
.. function:: OpenKeyEx(key, sub_key, options=0, access=KEY_READ, reserved=0)
366+
.. function:: OpenKeyEx(key, sub_key, options=0, access=KEY_READ, *, reserved=0)
367367

368368
Opens the specified key, returning a :ref:`handle object <handle-object>`.
369369

PC/clinic/winreg.c.h

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PC/winreg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,7 @@ winreg.OpenKeyEx -> HKEY
14301430
access: REGSAM(c_default='KEY_READ') = winreg.KEY_READ
14311431
An integer that specifies an access mask that describes the desired
14321432
security access for the key. Default is KEY_READ.
1433+
*
14331434
reserved: int = 0
14341435
A reserved integer that be should zero. If it is not zero,
14351436
it will be used as the options parameter for compatibility reasons.
@@ -1444,7 +1445,7 @@ If the function fails, an OSError exception is raised.
14441445
static HKEY
14451446
winreg_OpenKeyEx_impl(PyObject *module, HKEY key, const wchar_t *sub_key,
14461447
int options, REGSAM access, int reserved)
1447-
/*[clinic end generated code: output=db8d3dc70876a046 input=d997970b48ac2e30]*/
1448+
/*[clinic end generated code: output=db8d3dc70876a046 input=c8b4acb92b668596]*/
14481449
{
14491450
HKEY retKey;
14501451
long rc;

0 commit comments

Comments
 (0)