From: Brian Curtin Date: Tue, 29 May 2012 23:34:45 +0000 (-0500) Subject: Fix #14943. Update the proper default value and list the proper argument names in... X-Git-Tag: v3.3.0a4~7^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13c70345ca3767e6b83ef36998fc4953c01fb65a;p=thirdparty%2FPython%2Fcpython.git Fix #14943. Update the proper default value and list the proper argument names in the explanation. --- diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index 5cf30ee03c2d..e49b51b085a3 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -243,7 +243,7 @@ This module offers the following functions: specified in *file_name* is relative to the remote computer. -.. function:: OpenKey(key, sub_key, reserved=0, access=KEY_ALL_ACCESS) +.. function:: OpenKey(key, sub_key, reserved=0, access=KEY_READ) Opens the specified key, returning a :ref:`handle object `. @@ -252,9 +252,9 @@ This module offers the following functions: *sub_key* is a string that identifies the sub_key to open. - *res* is a reserved integer, and must be zero. The default is zero. + *reserved* is a reserved integer, and must be zero. The default is zero. - *sam* is an integer that specifies an access mask that describes the desired + *access* is an integer that specifies an access mask that describes the desired security access for the key. Default is :const:`KEY_READ`. See :ref:`Access Rights ` for other allowed values.