diff options
author | Hynek Schlawack <hs@ox.cx> | 2012-05-21 09:01:54 (GMT) |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2012-05-21 09:01:54 (GMT) |
commit | dfa465243c94b540099c413eb79b2774b40bb82e (patch) | |
tree | 3b67d5600dc9fa2be8843c024259336d73e69b1e /Doc/library/nis.rst | |
parent | f54c0604c852c2bf0b4d522cea7d94f205a795e8 (diff) | |
download | cpython-dfa465243c94b540099c413eb79b2774b40bb82e.zip cpython-dfa465243c94b540099c413eb79b2774b40bb82e.tar.gz cpython-dfa465243c94b540099c413eb79b2774b40bb82e.tar.bz2 |
#14804: Remove [] around optional arguments with default values
Diffstat (limited to 'Doc/library/nis.rst')
-rw-r--r-- | Doc/library/nis.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/nis.rst b/Doc/library/nis.rst index 1281e3f..ade2a7a 100644 --- a/Doc/library/nis.rst +++ b/Doc/library/nis.rst @@ -17,7 +17,7 @@ Because NIS exists only on Unix systems, this module is only available for Unix. The :mod:`nis` module defines the following functions: -.. function:: match(key, mapname[, domain=default_domain]) +.. function:: match(key, mapname, domain=default_domain) Return the match for *key* in map *mapname*, or raise an error (:exc:`nis.error`) if there is none. Both should be strings, *key* is 8-bit @@ -30,7 +30,7 @@ The :mod:`nis` module defines the following functions: unspecified, lookup is in the default NIS domain. -.. function:: cat(mapname[, domain=default_domain]) +.. function:: cat(mapname, domain=default_domain) Return a dictionary mapping *key* to *value* such that ``match(key, mapname)==value``. Note that both keys and values of the dictionary are @@ -42,7 +42,7 @@ The :mod:`nis` module defines the following functions: unspecified, lookup is in the default NIS domain. -.. function:: maps([domain=default_domain]) +.. function:: maps(domain=default_domain) Return a list of all valid maps. |