@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.7\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2019-04-09 11:06 +0900\n "
14+ "POT-Creation-Date : 2019-06-02 11:35 +0900\n "
1515"PO-Revision-Date : 2017-02-16 23:36+0000\n "
1616"
Last-Translator :
Jerry Chen <[email protected] >, 2017\n "
1717"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -165,26 +165,27 @@ msgstr ""
165165
166166#: ../../library/xml.dom.minidom.rst:137
167167msgid ""
168- "Write XML to the writer object. The writer should have a :meth:`write` "
169- "method which matches that of the file object interface. The *indent* "
170- "parameter is the indentation of the current node. The *addindent* parameter"
171- " is the incremental indentation to use for subnodes of the current one. The"
172- " *newl* parameter specifies the string to use to terminate newlines."
168+ "Write XML to the writer object. The writer receives texts but not bytes as "
169+ "input, it should have a :meth:`write` method which matches that of the file "
170+ "object interface. The *indent* parameter is the indentation of the current "
171+ "node. The *addindent* parameter is the incremental indentation to use for "
172+ "subnodes of the current one. The *newl* parameter specifies the string to "
173+ "use to terminate newlines."
173174msgstr ""
174175
175- #: ../../library/xml.dom.minidom.rst:143
176+ #: ../../library/xml.dom.minidom.rst:144
176177msgid ""
177178"For the :class:`Document` node, an additional keyword argument *encoding* "
178179"can be used to specify the encoding field of the XML header."
179180msgstr ""
180181
181- #: ../../library/xml.dom.minidom.rst:149
182+ #: ../../library/xml.dom.minidom.rst:150
182183msgid ""
183184"Return a string or byte string containing the XML represented by the DOM "
184185"node."
185186msgstr ""
186187
187- #: ../../library/xml.dom.minidom.rst:152
188+ #: ../../library/xml.dom.minidom.rst:153
188189msgid ""
189190"With an explicit *encoding* [1]_ argument, the result is a byte string in "
190191"the specified encoding. With no *encoding* argument, the result is a Unicode"
@@ -193,47 +194,47 @@ msgid ""
193194"incorrect, since UTF-8 is the default encoding of XML."
194195msgstr ""
195196
196- #: ../../library/xml.dom.minidom.rst:161
197+ #: ../../library/xml.dom.minidom.rst:162
197198msgid ""
198199"Return a pretty-printed version of the document. *indent* specifies the "
199200"indentation string and defaults to a tabulator; *newl* specifies the string "
200201"emitted at the end of each line and defaults to ``\\ n``."
201202msgstr ""
202203
203- #: ../../library/xml.dom.minidom.rst:165
204+ #: ../../library/xml.dom.minidom.rst:166
204205msgid ""
205206"The *encoding* argument behaves like the corresponding argument of "
206207":meth:`toxml`."
207208msgstr ""
208209
209- #: ../../library/xml.dom.minidom.rst:172
210+ #: ../../library/xml.dom.minidom.rst:173
210211msgid "DOM Example"
211212msgstr ""
212213
213- #: ../../library/xml.dom.minidom.rst:174
214+ #: ../../library/xml.dom.minidom.rst:175
214215msgid ""
215216"This example program is a fairly realistic example of a simple program. In "
216217"this particular case, we do not take much advantage of the flexibility of "
217218"the DOM."
218219msgstr ""
219220
220- #: ../../library/xml.dom.minidom.rst:183
221+ #: ../../library/xml.dom.minidom.rst:184
221222msgid "minidom and the DOM standard"
222223msgstr ""
223224
224- #: ../../library/xml.dom.minidom.rst:185
225+ #: ../../library/xml.dom.minidom.rst:186
225226msgid ""
226227"The :mod:`xml.dom.minidom` module is essentially a DOM 1.0-compatible DOM "
227228"with some DOM 2 features (primarily namespace features)."
228229msgstr ""
229230
230- #: ../../library/xml.dom.minidom.rst:188
231+ #: ../../library/xml.dom.minidom.rst:189
231232msgid ""
232233"Usage of the DOM interface in Python is straight-forward. The following "
233234"mapping rules apply:"
234235msgstr ""
235236
236- #: ../../library/xml.dom.minidom.rst:191
237+ #: ../../library/xml.dom.minidom.rst:192
237238msgid ""
238239"Interfaces are accessed through instance objects. Applications should not "
239240"instantiate the classes themselves; they should use the creator functions "
@@ -242,14 +243,14 @@ msgid ""
242243"operations."
243244msgstr ""
244245
245- #: ../../library/xml.dom.minidom.rst:196
246+ #: ../../library/xml.dom.minidom.rst:197
246247msgid ""
247248"Operations are used as methods. Since the DOM uses only :keyword:`in` "
248249"parameters, the arguments are passed in normal order (from left to right). "
249250"There are no optional arguments. ``void`` operations return ``None``."
250251msgstr ""
251252
252- #: ../../library/xml.dom.minidom.rst:200
253+ #: ../../library/xml.dom.minidom.rst:201
253254msgid ""
254255"IDL attributes map to instance attributes. For compatibility with the OMG "
255256"IDL language mapping for Python, an attribute ``foo`` can also be accessed "
@@ -258,35 +259,35 @@ msgid ""
258259"runtime."
259260msgstr ""
260261
261- #: ../../library/xml.dom.minidom.rst:205
262+ #: ../../library/xml.dom.minidom.rst:206
262263msgid ""
263264"The types ``short int``, ``unsigned int``, ``unsigned long long``, and "
264265"``boolean`` all map to Python integer objects."
265266msgstr ""
266267
267- #: ../../library/xml.dom.minidom.rst:208
268+ #: ../../library/xml.dom.minidom.rst:209
268269msgid ""
269270"The type ``DOMString`` maps to Python strings. :mod:`xml.dom.minidom` "
270271"supports either bytes or strings, but will normally produce strings. Values "
271272"of type ``DOMString`` may also be ``None`` where allowed to have the IDL "
272273"``null`` value by the DOM specification from the W3C."
273274msgstr ""
274275
275- #: ../../library/xml.dom.minidom.rst:213
276+ #: ../../library/xml.dom.minidom.rst:214
276277msgid ""
277278"``const`` declarations map to variables in their respective scope (e.g. "
278279"``xml.dom.minidom.Node.PROCESSING_INSTRUCTION_NODE``); they must not be "
279280"changed."
280281msgstr ""
281282
282- #: ../../library/xml.dom.minidom.rst:216
283+ #: ../../library/xml.dom.minidom.rst:217
283284msgid ""
284285"``DOMException`` is currently not supported in :mod:`xml.dom.minidom`. "
285286"Instead, :mod:`xml.dom.minidom` uses standard Python exceptions such as "
286287":exc:`TypeError` and :exc:`AttributeError`."
287288msgstr ""
288289
289- #: ../../library/xml.dom.minidom.rst:220
290+ #: ../../library/xml.dom.minidom.rst:221
290291msgid ""
291292":class:`NodeList` objects are implemented using Python's built-in list type."
292293" These objects provide the interface defined in the DOM specification, but "
@@ -295,30 +296,30 @@ msgid ""
295296"recommendations."
296297msgstr ""
297298
298- #: ../../library/xml.dom.minidom.rst:226
299+ #: ../../library/xml.dom.minidom.rst:227
299300msgid ""
300301"The following interfaces have no implementation in :mod:`xml.dom.minidom`:"
301302msgstr ""
302303
303- #: ../../library/xml.dom.minidom.rst:228
304+ #: ../../library/xml.dom.minidom.rst:229
304305msgid ":class:`DOMTimeStamp`"
305306msgstr ""
306307
307- #: ../../library/xml.dom.minidom.rst:230
308+ #: ../../library/xml.dom.minidom.rst:231
308309msgid ":class:`EntityReference`"
309310msgstr ""
310311
311- #: ../../library/xml.dom.minidom.rst:232
312+ #: ../../library/xml.dom.minidom.rst:233
312313msgid ""
313314"Most of these reflect information in the XML document that is not of general"
314315" utility to most DOM users."
315316msgstr ""
316317
317- #: ../../library/xml.dom.minidom.rst:236
318+ #: ../../library/xml.dom.minidom.rst:237
318319msgid "Footnotes"
319320msgstr "脚注"
320321
321- #: ../../library/xml.dom.minidom.rst:237
322+ #: ../../library/xml.dom.minidom.rst:238
322323msgid ""
323324"The encoding name included in the XML output should conform to the "
324325"appropriate standards. For example, \" UTF-8\" is valid, but \" UTF8\" is not "
0 commit comments