Skip to content

[2.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). #15133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Doc/library/_winreg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ This module offers the following functions:
*key* is an already open key, or one of the predefined
:ref:`HKEY_* constants <hkey-constants>`.

Will generally raise :exc:`NotImplemented` if executed on a 32-bit
Will generally raise :exc:`NotImplementedError` if executed on a 32-bit
operating system.

If the key is not on the reflection list, the function succeeds but has no
Expand All @@ -442,7 +442,7 @@ This module offers the following functions:
*key* is an already open key, or one of the predefined
:ref:`HKEY_* constants <hkey-constants>`.

Will generally raise :exc:`NotImplemented` if executed on a 32-bit
Will generally raise :exc:`NotImplementedError` if executed on a 32-bit
operating system.

Restoring reflection for a key does not affect reflection of any subkeys.
Expand All @@ -457,7 +457,7 @@ This module offers the following functions:

Returns ``True`` if reflection is disabled.

Will generally raise :exc:`NotImplemented` if executed on a 32-bit
Will generally raise :exc:`NotImplementedError` if executed on a 32-bit
operating system.


Expand Down
6 changes: 3 additions & 3 deletions PC/_winreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,19 +322,19 @@ PyDoc_STRVAR(SetValueEx_doc,

PyDoc_STRVAR(DisableReflectionKey_doc,
"Disables registry reflection for 32-bit processes running on a 64-bit\n"
"Operating System. Will generally raise NotImplemented if executed on\n"
"Operating System. Will generally raise NotImplementedError if executed on\n"
"a 32-bit Operating System.\n"
"If the key is not on the reflection list, the function succeeds but has no effect.\n"
"Disabling reflection for a key does not affect reflection of any subkeys.");

PyDoc_STRVAR(EnableReflectionKey_doc,
"Restores registry reflection for the specified disabled key.\n"
"Will generally raise NotImplemented if executed on a 32-bit Operating System.\n"
"Will generally raise NotImplementedError if executed on a 32-bit Operating System.\n"
"Restoring reflection for a key does not affect reflection of any subkeys.");

PyDoc_STRVAR(QueryReflectionKey_doc,
"bool = QueryReflectionKey(hkey) - Determines the reflection state for the specified key.\n"
"Will generally raise NotImplemented if executed on a 32-bit Operating System.\n");
"Will generally raise NotImplementedError if executed on a 32-bit Operating System.\n");

/* PyHKEY docstrings */
PyDoc_STRVAR(PyHKEY_doc,
Expand Down