8000 bpo-37730: Fix usage of NotImplemented instead of NotImplementedError… · python/cpython@dd5f8ab · GitHub
[go: up one dir, main page]

Skip to content

Commit dd5f8ab

Browse files
miss-islingtonDavid H
andauthored
bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062)
(cherry picked from commit ed5e8e0) Co-authored-by: David H <dheiberg@mozilla.com>
1 parent dde944f commit dd5f8ab

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Doc/library/winreg.rst

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

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

462462
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:
471471
*key* is an already open key, or one of the predefined :ref:`HKEY_* constants
472472
<hkey-constants>`.
473473

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

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

487487
Returns ``True`` if reflection is disabled.
488488

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

492492

PC/clinic/winreg.c.h

Lines changed: 4 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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ winreg.DisableReflectionKey
17021702
17031703
Disables registry reflection for 32bit processes running on a 64bit OS.
17041704
1705-
Will generally raise NotImplemented if executed on a 32bit OS.
1705+
Will generally raise NotImplementedError if executed on a 32bit OS.
17061706
17071707
If the key is not on the reflection list, the function succeeds but has
17081708
no effect. Disabling reflection for a key does not affect reflection
@@ -1711,7 +1711,7 @@ of any subkeys.
17111711

17121712
static PyObject *
17131713
winreg_DisableReflectionKey_impl(PyObject *module, HKEY key)
1714-
/*[clinic end generated code: output=830cce504cc764b4 input=a6c9e5ca5410193c]*/
1714+
/*[clinic end generated code: output=830cce504cc764b4 input=70bece2dee02e073]*/
17151715
{
17161716
HMODULE hMod;
17171717
typedef LONG (WINAPI *RDRKFunc)(HKEY);
@@ -1749,14 +1749,14 @@ winreg.EnableReflectionKey
17491749
17501750
Restores registry reflection for the specified disabled key.
17511751
1752-
Will generally raise NotImplemented if executed on a 32bit OS.
1752+
Will generally raise NotImplementedError if executed on a 32bit OS.
17531753
Restoring reflection for a key does not affect reflection of any
17541754
subkeys.
17551755
[clinic start generated code]*/
17561756

17571757
static PyObject *
17581758
winreg_EnableReflectionKey_impl(PyObject *module, HKEY key)
1759-
/*[clinic end generated code: output=86fa1385fdd9ce57 input=7748abbacd1e166a]*/
1759+
/*[clinic end generated code: output=86fa1385fdd9ce57 input=eeae770c6eb9f559]*/
17601760
{
17611761
HMODULE hMod;
17621762
typedef LONG (WINAPI *RERKFunc)(HKEY);
@@ -1794,12 +1794,12 @@ winreg.QueryReflectionKey
17941794
17951795
Returns the reflection state for the specified key as a bool.
17961796< 7639 /code>
1797-
Will generally raise NotImplemented if executed on a 32bit OS.
1797+
Will generally raise NotImplementedError if executed on a 32bit OS.
17981798
[clinic start generated code]*/
17991799

18001800
static PyObject *
18011801
winreg_QueryReflectionKey_impl(PyObject *module, HKEY key)
1802-
/*[clinic end generated code: output=4e774af288c3ebb9 input=9f325eacb5a65d88]*/
1802+
/*[clinic end generated code: output=4e774af288c3ebb9 input=a98fa51d55ade186]*/
18031803
{
18041804
HMODULE hMod;
18051805
typedef LONG (WINAPI *RQRKFunc)(HKEY, BOOL *);

0 commit comments

Comments
 (0)
0