Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f4eeb5

Browse files
committed
[po] auto sync bot
1 parent 8130a64 commit 1f4eeb5

7 files changed

Lines changed: 3994 additions & 3938 deletions

File tree

library/xml.dom.pulldom.po

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.7\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-06-30 05:56+0900\n"
11+
"POT-Creation-Date: 2018-09-25 09:16+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1414
"MIME-Version: 1.0\n"
@@ -44,53 +44,60 @@ msgid ""
4444
"see :ref:`xml-vulnerabilities`."
4545
msgstr ""
4646

47-
#: ../../library/xml.dom.pulldom.rst:29
47+
#: ../../library/xml.dom.pulldom.rst:30
48+
msgid ""
49+
"The SAX parser no longer processes general external entities by default to "
50+
"increase security by default. To enable processing of external entities, "
51+
"pass a custom parser instance in::"
52+
msgstr ""
53+
54+
#: ../../library/xml.dom.pulldom.rst:43
4855
msgid "Example::"
4956
msgstr ""
5057

51-
#: ../../library/xml.dom.pulldom.rst:40
58+
#: ../../library/xml.dom.pulldom.rst:54
5259
msgid "``event`` is a constant and can be one of:"
5360
msgstr ""
5461

55-
#: ../../library/xml.dom.pulldom.rst:42
62+
#: ../../library/xml.dom.pulldom.rst:56
5663
msgid ":data:`START_ELEMENT`"
5764
msgstr ""
5865

59-
#: ../../library/xml.dom.pulldom.rst:43
66+
#: ../../library/xml.dom.pulldom.rst:57
6067
msgid ":data:`END_ELEMENT`"
6168
msgstr ""
6269

63-
#: ../../library/xml.dom.pulldom.rst:44
70+
#: ../../library/xml.dom.pulldom.rst:58
6471
msgid ":data:`COMMENT`"
6572
msgstr ""
6673

67-
#: ../../library/xml.dom.pulldom.rst:45
74+
#: ../../library/xml.dom.pulldom.rst:59
6875
msgid ":data:`START_DOCUMENT`"
6976
msgstr ""
7077

71-
#: ../../library/xml.dom.pulldom.rst:46
78+
#: ../../library/xml.dom.pulldom.rst:60
7279
msgid ":data:`END_DOCUMENT`"
7380
msgstr ""
7481

75-
#: ../../library/xml.dom.pulldom.rst:47
82+
#: ../../library/xml.dom.pulldom.rst:61
7683
msgid ":data:`CHARACTERS`"
7784
msgstr ""
7885

79-
#: ../../library/xml.dom.pulldom.rst:48
86+
#: ../../library/xml.dom.pulldom.rst:62
8087
msgid ":data:`PROCESSING_INSTRUCTION`"
8188
msgstr ""
8289

83-
#: ../../library/xml.dom.pulldom.rst:49
90+
#: ../../library/xml.dom.pulldom.rst:63
8491
msgid ":data:`IGNORABLE_WHITESPACE`"
8592
msgstr ""
8693

87-
#: ../../library/xml.dom.pulldom.rst:51
94+
#: ../../library/xml.dom.pulldom.rst:65
8895
msgid ""
8996
"``node`` is an object of type :class:`xml.dom.minidom.Document`, "
9097
":class:`xml.dom.minidom.Element` or :class:`xml.dom.minidom.Text`."
9198
msgstr ""
9299

93-
#: ../../library/xml.dom.pulldom.rst:54
100+
#: ../../library/xml.dom.pulldom.rst:68
94101
msgid ""
95102
"Since the document is treated as a \"flat\" stream of events, the document "
96103
"\"tree\" is implicitly traversed and the desired elements are found "
@@ -103,11 +110,11 @@ msgid ""
103110
"processing."
104111
msgstr ""
105112

106-
#: ../../library/xml.dom.pulldom.rst:66 ../../library/xml.dom.pulldom.rst:71
113+
#: ../../library/xml.dom.pulldom.rst:80 ../../library/xml.dom.pulldom.rst:85
107114
msgid "Subclass of :class:`xml.sax.handler.ContentHandler`."
108115
msgstr ""
109116

110-
#: ../../library/xml.dom.pulldom.rst:76
117+
#: ../../library/xml.dom.pulldom.rst:90
111118
msgid ""
112119
"Return a :class:`DOMEventStream` from the given input. *stream_or_string* "
113120
"may be either a file name, or a file-like object. *parser*, if given, must "
@@ -117,32 +124,32 @@ msgid ""
117124
"done in advance."
118125
msgstr ""
119126

120-
#: ../../library/xml.dom.pulldom.rst:83
127+
#: ../../library/xml.dom.pulldom.rst:97
121128
msgid ""
122129
"If you have XML in a string, you can use the :func:`parseString` function "
123130
"instead:"
124131
msgstr ""
125132

126-
#: ../../library/xml.dom.pulldom.rst:87
133+
#: ../../library/xml.dom.pulldom.rst:101
127134
msgid ""
128135
"Return a :class:`DOMEventStream` that represents the (Unicode) *string*."
129136
msgstr ""
130137

131-
#: ../../library/xml.dom.pulldom.rst:91
138+
#: ../../library/xml.dom.pulldom.rst:105
132139
msgid "Default value for the *bufsize* parameter to :func:`parse`."
133140
msgstr ""
134141

135-
#: ../../library/xml.dom.pulldom.rst:93
142+
#: ../../library/xml.dom.pulldom.rst:107
136143
msgid ""
137144
"The value of this variable can be changed before calling :func:`parse` and "
138145
"the new value will take effect."
139146
msgstr ""
140147

141-
#: ../../library/xml.dom.pulldom.rst:99
148+
#: ../../library/xml.dom.pulldom.rst:113
142149
msgid "DOMEventStream Objects"
143150
msgstr ""
144151

145-
#: ../../library/xml.dom.pulldom.rst:106
152+
#: ../../library/xml.dom.pulldom.rst:120
146153
msgid ""
147154
"Return a tuple containing *event* and the current *node* as "
148155
":class:`xml.dom.minidom.Document` if event equals :data:`START_DOCUMENT`, "
@@ -152,6 +159,6 @@ msgid ""
152159
"children, unless :func:`expandNode` is called."
153160
msgstr ""
154161

155-
#: ../../library/xml.dom.pulldom.rst:116
162+
#: ../../library/xml.dom.pulldom.rst:130
156163
msgid "Expands all children of *node* into *node*. Example::"
157164
msgstr ""

library/xml.po

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.7\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-06-30 05:56+0900\n"
11+
"POT-Creation-Date: 2018-09-25 09:16+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1414
"MIME-Version: 1.0\n"
@@ -130,19 +130,23 @@ msgstr ""
130130
#: ../../library/xml.rst:66 ../../library/xml.rst:66 ../../library/xml.rst:66
131131
#: ../../library/xml.rst:66 ../../library/xml.rst:66 ../../library/xml.rst:67
132132
#: ../../library/xml.rst:67 ../../library/xml.rst:67 ../../library/xml.rst:67
133-
#: ../../library/xml.rst:67 ../../library/xml.rst:68 ../../library/xml.rst:68
134-
#: ../../library/xml.rst:69 ../../library/xml.rst:69 ../../library/xml.rst:70
133+
#: ../../library/xml.rst:67 ../../library/xml.rst:70
135134
msgid "**Vulnerable**"
136135
msgstr ""
137136

138137
#: ../../library/xml.rst:67
139138
msgid "quadratic blowup"
140139
msgstr ""
141140

142-
#: ../../library/xml.rst:68 ../../library/xml.rst:97
141+
#: ../../library/xml.rst:68 ../../library/xml.rst:99
143142
msgid "external entity expansion"
144143
msgstr ""
145144

145+
#: ../../library/xml.rst:68 ../../library/xml.rst:68 ../../library/xml.rst:69
146+
#: ../../library/xml.rst:69
147+
msgid "Safe (4)"
148+
msgstr ""
149+
146150
#: ../../library/xml.rst:68
147151
msgid "Safe (1)"
148152
msgstr ""
@@ -155,7 +159,7 @@ msgstr ""
155159
msgid "Safe (3)"
156160
msgstr ""
157161

158-
#: ../../library/xml.rst:69 ../../library/xml.rst:102
162+
#: ../../library/xml.rst:69 ../../library/xml.rst:104
159163
msgid "`DTD`_ retrieval"
160164
msgstr ""
161165

@@ -165,7 +169,7 @@ msgstr ""
165169
msgid "Safe"
166170
msgstr ""
167171

168-
#: ../../library/xml.rst:70 ../../library/xml.rst:109
172+
#: ../../library/xml.rst:70 ../../library/xml.rst:111
169173
msgid "decompression bomb"
170174
msgstr ""
171175

@@ -185,11 +189,17 @@ msgstr ""
185189
msgid ":mod:`xmlrpclib` doesn't expand external entities and omits them."
186190
msgstr ""
187191

188-
#: ../../library/xml.rst:85
192+
#: ../../library/xml.rst:78
193+
msgid ""
194+
"Since Python 3.8.0, external general entities are no longer processed by "
195+
"default since Python."
196+
msgstr ""
197+
198+
#: ../../library/xml.rst:87
189199
msgid "billion laughs / exponential entity expansion"
190200
msgstr ""
191201

192-
#: ../../library/xml.rst:81
202+
#: ../../library/xml.rst:83
193203
msgid ""
194204
"The `Billion Laughs`_ attack -- also known as exponential entity expansion "
195205
"-- uses multiple levels of nested entities. Each entity refers to another "
@@ -198,11 +208,11 @@ msgid ""
198208
"consumes lots of memory and CPU time."
199209
msgstr ""
200210

201-
#: ../../library/xml.rst:92
211+
#: ../../library/xml.rst:94
202212
msgid "quadratic blowup entity expansion"
203213
msgstr ""
204214

205-
#: ../../library/xml.rst:88
215+
#: ../../library/xml.rst:90
206216
msgid ""
207217
"A quadratic blowup attack is similar to a `Billion Laughs`_ attack; it "
208218
"abuses entity expansion, too. Instead of nested entities it repeats one "
@@ -211,39 +221,39 @@ msgid ""
211221
"countermeasures that forbid deeply-nested entities."
212222
msgstr ""
213223

214-
#: ../../library/xml.rst:95
224+
#: ../../library/xml.rst:97
215225
msgid ""
216226
"Entity declarations can contain more than just text for replacement. They "
217227
"can also point to external resources or local files. The XML parser accesses"
218228
" the resource and embeds the content into the XML document."
219229
msgstr ""
220230

221-
#: ../../library/xml.rst:100
231+
#: ../../library/xml.rst:102
222232
msgid ""
223233
"Some XML libraries like Python's :mod:`xml.dom.pulldom` retrieve document "
224234
"type definitions from remote or local locations. The feature has similar "
225235
"implications as the external entity expansion issue."
226236
msgstr ""
227237

228-
#: ../../library/xml.rst:105
238+
#: ../../library/xml.rst:107
229239
msgid ""
230240
"Decompression bombs (aka `ZIP bomb`_) apply to all XML libraries that can "
231241
"parse compressed XML streams such as gzipped HTTP streams or LZMA-compressed"
232242
" files. For an attacker it can reduce the amount of transmitted data by "
233243
"three magnitudes or more."
234244
msgstr ""
235245

236-
#: ../../library/xml.rst:111
246+
#: ../../library/xml.rst:113
237247
msgid ""
238248
"The documentation for `defusedxml`_ on PyPI has further information about "
239249
"all known attack vectors with examples and references."
240250
msgstr ""
241251

242-
#: ../../library/xml.rst:117
252+
#: ../../library/xml.rst:119
243253
msgid "The :mod:`defusedxml` and :mod:`defusedexpat` Packages"
244254
msgstr ""
245255

246-
#: ../../library/xml.rst:119
256+
#: ../../library/xml.rst:121
247257
msgid ""
248258
"`defusedxml`_ is a pure Python package with modified subclasses of all "
249259
"stdlib XML parsers that prevent any potentially malicious operation. Use of "
@@ -252,7 +262,7 @@ msgid ""
252262
"documentation on more XML exploits such as XPath injection."
253263
msgstr ""
254264

255-
#: ../../library/xml.rst:125
265+
#: ../../library/xml.rst:127
256266
msgid ""
257267
"`defusedexpat`_ provides a modified libexpat and a patched :mod:`pyexpat` "
258268
"module that have countermeasures against entity expansion DoS attacks. The "

0 commit comments

Comments
 (0)