summaryrefslogtreecommitdiffstats
path: root/Doc/library/_winreg.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-31 16:31:11 (GMT)
committerGeorg Brandl <georg@python.org>2009-03-31 16:31:11 (GMT)
commitb945bbf33e4e575f065f18ad466c3509b771437e (patch)
treeb5d7ac9cddd847def1494abec33709901b7dd834 /Doc/library/_winreg.rst
parent624f3372e28e81516d5fc1e38d309066ba8464e6 (diff)
downloadcpython-b945bbf33e4e575f065f18ad466c3509b771437e.zip
cpython-b945bbf33e4e575f065f18ad466c3509b771437e.tar.gz
cpython-b945bbf33e4e575f065f18ad466c3509b771437e.tar.bz2
#1386675: specify WindowsError as the exception, because it has a winerror attribute that EnvironmentError doesnt have.
Diffstat (limited to 'Doc/library/_winreg.rst')
-rw-r--r--Doc/library/_winreg.rst17
1 files changed, 8 insertions, 9 deletions
diff --git a/Doc/library/_winreg.rst b/Doc/library/_winreg.rst
index 4e3cebb..e9c0fa7 100644
--- a/Doc/library/_winreg.rst
+++ b/Doc/library/_winreg.rst
@@ -1,4 +1,3 @@
-
:mod:`_winreg` -- Windows registry access
=========================================
@@ -47,8 +46,8 @@ This module offers the following functions:
*key* is the predefined handle to connect to.
- The return value is the handle of the opened key. If the function fails, an
- :exc:`EnvironmentError` exception is raised.
+ The return value is the handle of the opened key. If the function fails, a
+ :exc:`WindowsError` exception is raised.
.. function:: CreateKey(key, sub_key)
@@ -65,8 +64,8 @@ This module offers the following functions:
If the key already exists, this function opens the existing key.
- The return value is the handle of the opened key. If the function fails, an
- :exc:`EnvironmentError` exception is raised.
+ The return value is the handle of the opened key. If the function fails, a
+ :exc:`WindowsError` exception is raised.
.. function:: DeleteKey(key, sub_key)
@@ -82,7 +81,7 @@ This module offers the following functions:
*This method can not delete keys with subkeys.*
If the method succeeds, the entire key, including all of its values, is removed.
- If the method fails, an :exc:`EnvironmentError` exception is raised.
+ If the method fails, a :exc:`WindowsError` exception is raised.
.. function:: DeleteValue(key, value)
@@ -105,7 +104,7 @@ This module offers the following functions:
*index* is an integer that identifies the index of the key to retrieve.
The function retrieves the name of one subkey each time it is called. It is
- typically called repeatedly until an :exc:`EnvironmentError` exception is
+ typically called repeatedly until a :exc:`WindowsError` exception is
raised, indicating, no more values are available.
@@ -119,7 +118,7 @@ This module offers the following functions:
*index* is an integer that identifies the index of the value to retrieve.
The function retrieves the name of one subkey each time it is called. It is
- typically called repeatedly, until an :exc:`EnvironmentError` exception is
+ typically called repeatedly, until a :exc:`WindowsError` exception is
raised, indicating no more values.
The result is a tuple of 3 items:
@@ -209,7 +208,7 @@ This module offers the following functions:
The result is a new handle to the specified key.
- If the function fails, :exc:`EnvironmentError` is raised.
+ If the function fails, :exc:`WindowsError` is raised.
.. function:: OpenKeyEx()