@@ -29,17 +29,17 @@ msgstr ":mod:`nis` --- Sun 的 NIS (黄页) 接口"
2929msgid ""
3030"The :mod:`nis` module gives a thin wrapper around the NIS library, useful "
3131"for central administration of several hosts."
32- msgstr ""
32+ msgstr ":mod:`nis` 模块提供了对 NIS 库的轻量级包装,适用于多个主机的集中管理。 "
3333
3434#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:17
3535msgid ""
3636"Because NIS exists only on Unix systems, this module is only available for "
3737"Unix."
38- msgstr ""
38+ msgstr "因为 NIS 仅存在于 Unix 系统,此模块仅在 Unix 上可用。 "
3939
4040#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:19
4141msgid "The :mod:`nis` module defines the following functions:"
42- msgstr ""
42+ msgstr ":mod:`nis` 模块定义了以下函数: "
4343
4444#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:24
4545msgid ""
@@ -48,40 +48,44 @@ msgid ""
4848"clean. Return value is an arbitrary array of bytes (may contain ``NULL`` and"
4949" other joys)."
5050msgstr ""
51+ "返回 *key* 在映射 *mapname* 中的匹配结果,如无结果则会引发错误 (:exc:`nis.error`)。 "
52+ "两个参数都应为字符串,*key* 定长 8 个比特。 返回值为任意字节数组(可包含 ``NULL`` 和其他特殊值)。"
5153
5254#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:29
5355#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:41
5456msgid ""
5557"Note that *mapname* is first checked if it is an alias to another name."
56- msgstr ""
58+ msgstr "请注意如果 *mapname* 是另一名称的别名则会先检查别名。 "
5759
5860#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:31
5961#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:43
6062#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:51
6163msgid ""
6264"The *domain* argument allows overriding the NIS domain used for the lookup. "
6365"If unspecified, lookup is in the default NIS domain."
64- msgstr ""
66+ msgstr "*domain* 参数可允许重载用于查找的 NIS 域。 如果未指定,则会在默认 NIS 域中查找。 "
6567
6668#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:37
6769msgid ""
6870"Return a dictionary mapping *key* to *value* such that ``match(key, "
6971"mapname)==value``. Note that both keys and values of the dictionary are "
7072"arbitrary arrays of bytes."
7173msgstr ""
74+ "返回一个字典,其元素为 *key* 到 *value* 的映射使得 ``match(key, mapname)==value``。 "
75+ "请注意字典的键和值均为任意字节数组。"
7276
7377#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:49
7478msgid "Return a list of all valid maps."
75- msgstr ""
79+ msgstr "返回全部可用映射的列表。 "
7680
7781#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:57
7882msgid "Return the system default NIS domain."
79- msgstr ""
83+ msgstr "返回系统默认的 NIS 域。 "
8084
8185#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:60
8286msgid "The :mod:`nis` module defines the following exception:"
83- msgstr ""
87+ msgstr ":mod:`nis` 模块定义了以下异常: "
8488
8589#: /home/travis/build/python/cpython-doc-catalog/Doc/library/nis.rst:64
8690msgid "An error raised when a NIS function returns an error code."
87- msgstr ""
91+ msgstr "当 NIS 函数返回一个错误码时引发的异常。 "
0 commit comments