Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ed5e8e06
Commit
ed5e8e06
authored
Jul 31, 2019
by
David H
Committed by
Serhiy Storchaka
Aug 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062)
parent
9f55551f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
Doc/library/winreg.rst
Doc/library/winreg.rst
+3
-3
PC/clinic/winreg.c.h
PC/clinic/winreg.c.h
+4
-4
PC/winreg.c
PC/winreg.c
+6
-6
No files found.
Doc/library/winreg.rst
View file @
ed5e8e06
...
@@ -456,7 +456,7 @@ This module offers the following functions:
...
@@ -456,7 +456,7 @@ This module offers the following functions:
*key* is an already open key, or one of the predefined :ref:`HKEY_* constants
*key* is an already open key, or one of the predefined :ref:`HKEY_* constants
<hkey-constants>`.
<hkey-constants>`.
Will generally raise :exc:`NotImplemented` if executed on a 32-bit operating
Will generally raise :exc:`NotImplemented
Error
` if executed on a 32-bit operating
system.
system.
If the key is not on the reflection list, the function succeeds but has no
If the key is not on the reflection list, the function succeeds but has no
...
@@ -471,7 +471,7 @@ This module offers the following functions:
...
@@ -471,7 +471,7 @@ This module offers the following functions:
*key* is an already open key, or one of the predefined :ref:`HKEY_* constants
*key* is an already open key, or one of the predefined :ref:`HKEY_* constants
<hkey-constants>`.
<hkey-constants>`.
Will generally raise :exc:`NotImplemented` if executed on a 32-bit operating
Will generally raise :exc:`NotImplemented
Error
` if executed on a 32-bit operating
system.
system.
Restoring reflection for a key does not affect reflection of any subkeys.
Restoring reflection for a key does not affect reflection of any subkeys.
...
@@ -486,7 +486,7 @@ This module offers the following functions:
...
@@ -486,7 +486,7 @@ This module offers the following functions:
Returns ``True`` if reflection is disabled.
Returns ``True`` if reflection is disabled.
Will generally raise :exc:`NotImplemented` if executed on a 32-bit
Will generally raise :exc:`NotImplemented
Error
` if executed on a 32-bit
operating system.
operating system.
...
...
PC/clinic/winreg.c.h
View file @
ed5e8e06
...
@@ -1029,7 +1029,7 @@ PyDoc_STRVAR(winreg_DisableReflectionKey__doc__,
...
@@ -1029,7 +1029,7 @@ PyDoc_STRVAR(winreg_DisableReflectionKey__doc__,
" key
\n
"
" key
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
"
\n
"
"
\n
"
"Will generally raise NotImplemented if executed on a 32bit OS.
\n
"
"Will generally raise NotImplemented
Error
if executed on a 32bit OS.
\n
"
"
\n
"
"
\n
"
"If the key is not on the reflection list, the function succeeds but has
\n
"
"If the key is not on the reflection list, the function succeeds but has
\n
"
"no effect. Disabling reflection for a key does not affect reflection
\n
"
"no effect. Disabling reflection for a key does not affect reflection
\n
"
...
@@ -1065,7 +1065,7 @@ PyDoc_STRVAR(winreg_EnableReflectionKey__doc__,
...
@@ -1065,7 +1065,7 @@ PyDoc_STRVAR(winreg_EnableReflectionKey__doc__,
" key
\n
"
" key
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
"
\n
"
"
\n
"
"Will generally raise NotImplemented if executed on a 32bit OS.
\n
"
"Will generally raise NotImplemented
Error
if executed on a 32bit OS.
\n
"
"Restoring reflection for a key does not affect reflection of any
\n
"
"Restoring reflection for a key does not affect reflection of any
\n
"
"subkeys."
);
"subkeys."
);
...
@@ -1099,7 +1099,7 @@ PyDoc_STRVAR(winreg_QueryReflectionKey__doc__,
...
@@ -1099,7 +1099,7 @@ PyDoc_STRVAR(winreg_QueryReflectionKey__doc__,
" key
\n
"
" key
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
" An already open key, or any one of the predefined HKEY_* constants.
\n
"
"
\n
"
"
\n
"
"Will generally raise NotImplemented if executed on a 32bit OS."
);
"Will generally raise NotImplemented
Error
if executed on a 32bit OS."
);
#define WINREG_QUERYREFLECTIONKEY_METHODDEF \
#define WINREG_QUERYREFLECTIONKEY_METHODDEF \
{"QueryReflectionKey", (PyCFunction)winreg_QueryReflectionKey, METH_O, winreg_QueryReflectionKey__doc__},
{"QueryReflectionKey", (PyCFunction)winreg_QueryReflectionKey, METH_O, winreg_QueryReflectionKey__doc__},
...
@@ -1121,4 +1121,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
...
@@ -1121,4 +1121,4 @@ winreg_QueryReflectionKey(PyObject *module, PyObject *arg)
exit:
exit:
return
return_value
;
return
return_value
;
}
}
/*[clinic end generated code: output=
1204d20c543b5b4a
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
015afbbd690eb59d
input=a9049054013a1b77]*/
PC/winreg.c
View file @
ed5e8e06
...
@@ -1702,7 +1702,7 @@ winreg.DisableReflectionKey
...
@@ -1702,7 +1702,7 @@ winreg.DisableReflectionKey
Disables registry reflection for 32bit processes running on a 64bit OS.
Disables registry reflection for 32bit processes running on a 64bit OS.
Will generally raise NotImplemented if executed on a 32bit OS.
Will generally raise NotImplemented
Error
if executed on a 32bit OS.
If the key is not on the reflection list, the function succeeds but has
If the key is not on the reflection list, the function succeeds but has
no effect. Disabling reflection for a key does not affect reflection
no effect. Disabling reflection for a key does not affect reflection
...
@@ -1711,7 +1711,7 @@ of any subkeys.
...
@@ -1711,7 +1711,7 @@ of any subkeys.
static
PyObject
*
static
PyObject
*
winreg_DisableReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
winreg_DisableReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
/*[clinic end generated code: output=830cce504cc764b4 input=
a6c9e5ca5410193c
]*/
/*[clinic end generated code: output=830cce504cc764b4 input=
70bece2dee02e073
]*/
{
{
HMODULE
hMod
;
HMODULE
hMod
;
typedef
LONG
(
WINAPI
*
RDRKFunc
)(
HKEY
);
typedef
LONG
(
WINAPI
*
RDRKFunc
)(
HKEY
);
...
@@ -1749,14 +1749,14 @@ winreg.EnableReflectionKey
...
@@ -1749,14 +1749,14 @@ winreg.EnableReflectionKey
Restores registry reflection for the specified disabled key.
Restores registry reflection for the specified disabled key.
Will generally raise NotImplemented if executed on a 32bit OS.
Will generally raise NotImplemented
Error
if executed on a 32bit OS.
Restoring reflection for a key does not affect reflection of any
Restoring reflection for a key does not affect reflection of any
subkeys.
subkeys.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_EnableReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
winreg_EnableReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
/*[clinic end generated code: output=86fa1385fdd9ce57 input=
7748abbacd1e166a
]*/
/*[clinic end generated code: output=86fa1385fdd9ce57 input=
eeae770c6eb9f559
]*/
{
{
HMODULE
hMod
;
HMODULE
hMod
;
typedef
LONG
(
WINAPI
*
RERKFunc
)(
HKEY
);
typedef
LONG
(
WINAPI
*
RERKFunc
)(
HKEY
);
...
@@ -1794,12 +1794,12 @@ winreg.QueryReflectionKey
...
@@ -1794,12 +1794,12 @@ winreg.QueryReflectionKey
Returns the reflection state for the specified key as a bool.
Returns the reflection state for the specified key as a bool.
Will generally raise NotImplemented if executed on a 32bit OS.
Will generally raise NotImplemented
Error
if executed on a 32bit OS.
[clinic start generated code]*/
[clinic start generated code]*/
static
PyObject
*
static
PyObject
*
winreg_QueryReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
winreg_QueryReflectionKey_impl
(
PyObject
*
module
,
HKEY
key
)
/*[clinic end generated code: output=4e774af288c3ebb9 input=
9f325eacb5a65d88
]*/
/*[clinic end generated code: output=4e774af288c3ebb9 input=
a98fa51d55ade186
]*/
{
{
HMODULE
hMod
;
HMODULE
hMod
;
typedef
LONG
(
WINAPI
*
RQRKFunc
)(
HKEY
,
BOOL
*
);
typedef
LONG
(
WINAPI
*
RQRKFunc
)(
HKEY
,
BOOL
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment