Skip to content

Commit 35f9bcc

Browse files
David Hserhiy-storchaka
authored andcommitted
[2.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). (GH-15133)
(cherry picked from commit ed5e8e0) Co-authored-by: David H <[email protected]>
1 parent 53639dd commit 35f9bcc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/library/_winreg.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ This module offers the following functions:
427427
*key* is an already open key, or one of the predefined
428428
:ref:`HKEY_* constants <hkey-constants>`.
429429

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

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

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

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

458458
Returns ``True`` if reflection is disabled.
459459

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

463463

PC/_winreg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,19 +322,19 @@ PyDoc_STRVAR(SetValueEx_doc,
322322

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

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

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

339339
/* PyHKEY docstrings */
340340
PyDoc_STRVAR(PyHKEY_doc,

0 commit comments

Comments
 (0)