Skip to content

Commit 8cd6305

Browse files
serhiy-storchakaDavid H
andauthored
[3.7] bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs. (GH-15062). (GH-15106)
(cherry picked from commit ed5e8e0) Co-authored-by: David H <[email protected]>
1 parent 6ed20e5 commit 8cd6305

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
@@ -1697,7 +1697,7 @@ winreg.DisableReflectionKey
16971697
16981698
Disables registry reflection for 32bit processes running on a 64bit OS.
16991699
1700-
Will generally raise NotImplemented if executed on a 32bit OS.
1700+
Will generally raise NotImplementedError if executed on a 32bit OS.
17011701
17021702
If the key is not on the reflection list, the function succeeds but has
17031703
no effect. Disabling reflection for a key does not affect reflection
@@ -1706,7 +1706,7 @@ of any subkeys.
17061706

17071707
static PyObject *
17081708
winreg_DisableReflectionKey_impl(PyObject *module, HKEY key)
1709-
/*[clinic end generated code: output=830cce504cc764b4 input=a6c9e5ca5410193c]*/
1709+
/*[clinic end generated code: output=830cce504cc764b4 input=70bece2dee02e073]*/
17101710
{
17111711
HMODULE hMod;
17121712
typedef LONG (WINAPI *RDRKFunc)(HKEY);
@@ -1742,14 +1742,14 @@ winreg.EnableReflectionKey
17421742
17431743
Restores registry reflection for the specified disabled key.
17441744
1745-
Will generally raise NotImplemented if executed on a 32bit OS.
1745+
Will generally raise NotImplementedError if executed on a 32bit OS.
17461746
Restoring reflection for a key does not affect reflection of any
17471747
subkeys.
17481748
[clinic start generated code]*/
17491749

17501750
static PyObject *
17511751
winreg_EnableReflectionKey_impl(PyObject *module, HKEY key)
1752-
/*[clinic end generated code: output=86fa1385fdd9ce57 input=7748abbacd1e166a]*/
1752+
/*[clinic end generated code: output=86fa1385fdd9ce57 input=eeae770c6eb9f559]*/
17531753
{
17541754
HMODULE hMod;
17551755
typedef LONG (WINAPI *RERKFunc)(HKEY);
@@ -1785,12 +1785,12 @@ winreg.QueryReflectionKey
17851785
17861786
Returns the reflection state for the specified key as a bool.
17871787
1788-
Will generally raise NotImplemented if executed on a 32bit OS.
1788+
Will generally raise NotImplementedError if executed on a 32bit OS.
17891789
[clinic start generated code]*/
17901790

17911791
static PyObject *
17921792
winreg_QueryReflectionKey_impl(PyObject *module, HKEY key)
1793-
/*[clinic end generated code: output=4e774af288c3ebb9 input=9f325eacb5a65d88]*/
1793+
/*[clinic end generated code: output=4e774af288c3ebb9 input=a98fa51d55ade186]*/
17941794
{
17951795
HMODULE hMod;
17961796
typedef LONG (WINAPI *RQRKFunc)(HKEY, BOOL *);

0 commit comments

Comments
 (0)