@@ -8,10 +8,11 @@ msgid ""
88msgstr ""
99"Project-Id-Version :Python 3.7\n "
1010"Report-Msgid-Bugs-To :\n "
11- "POT-Creation-Date :2018-06-26 18:54 +0800\n "
11+ "POT-Creation-Date :2018-07-01 16:27 +0800\n "
1212"PO-Revision-Date :YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator :FULL NAME <EMAIL@ADDRESS>\n "
1414"Language-Team :LANGUAGE <LL@li.org>\n "
15+ "Language :\n "
1516"MIME-Version :1.0\n "
1617"Content-Type :text/plain; charset=UTF-8\n "
1718"Content-Transfer-Encoding :8bit\n "
@@ -72,183 +73,183 @@ msgstr ""
7273msgid "The name of the variable. This is a read-only property."
7374msgstr ""
7475
75- #: ../../library/contextvars.rst:53
76+ #: ../../library/contextvars.rst:55
7677msgid "Return a value for the context variable for the current context."
7778msgstr ""
7879
79- #: ../../library/contextvars.rst:55
80+ #: ../../library/contextvars.rst:57
8081msgid ""
8182"If there is no value for the variable in the current context, the method "
8283"will:"
8384msgstr ""
8485
85- #: ../../library/contextvars.rst:58
86+ #: ../../library/contextvars.rst:60
8687msgid ""
8788"return the value of the *default* argument of the method, if provided; or"
8889msgstr ""
8990
90- #: ../../library/contextvars.rst:61
91+ #: ../../library/contextvars.rst:63
9192msgid ""
9293"return the default value for the context variable, if it was created with "
9394"one; or"
9495msgstr ""
9596
96- #: ../../library/contextvars.rst:64
97+ #: ../../library/contextvars.rst:66
9798msgid "raise a :exc:`LookupError`."
9899msgstr ""
99100
100- #: ../../library/contextvars.rst:68
101+ #: ../../library/contextvars.rst:70
101102msgid ""
102103"Call to set a new value for the context variable in the current context."
103104msgstr ""
104105
105- #: ../../library/contextvars.rst:71
106+ #: ../../library/contextvars.rst:73
106107msgid ""
107108"The required *value* argument is the new value for the context variable."
108109msgstr ""
109110
110- #: ../../library/contextvars.rst:74
111+ #: ../../library/contextvars.rst:76
111112msgid ""
112113"Returns a :class:`~contextvars.Token` object that can be used to restore the "
113114"variable to its previous value via the :meth:`ContextVar.reset` method."
114115msgstr ""
115116
116- #: ../../library/contextvars.rst:80
117+ #: ../../library/contextvars.rst:82
117118msgid ""
118119"Reset the context variable to the value it had before the :meth:`ContextVar."
119120"set` that created the *token* was used."
120121msgstr ""
121122
122- #: ../../library/contextvars.rst:83
123+ #: ../../library/contextvars.rst:85
123124msgid "For example::"
124125msgstr ""
125126
126- #: ../../library/contextvars.rst:97
127+ #: ../../library/contextvars.rst:99
127128msgid ""
128129"*Token* objects are returned by the :meth:`ContextVar.set` method. They can "
129130"be passed to the :meth:`ContextVar.reset` method to revert the value of the "
130131"variable to what it was before the corresponding *set*."
131132msgstr ""
132133
133- #: ../../library/contextvars.rst:104
134+ #: ../../library/contextvars.rst:106
134135msgid ""
135136"A read-only property. Points to the :class:`ContextVar` object that created "
136137"the token."
137138msgstr ""
138139
139- #: ../../library/contextvars.rst:109
140+ #: ../../library/contextvars.rst:111
140141msgid ""
141142"A read-only property. Set to the value the variable had before the :meth:"
142143"`ContextVar.set` method call that created the token. It points to :attr:"
143144"`Token.MISSING` is the variable was not set before the call."
144145msgstr ""
145146
146- #: ../../library/contextvars.rst:116
147+ #: ../../library/contextvars.rst:118
147148msgid "A marker object used by :attr:`Token.old_value`."
148149msgstr ""
149150
150- #: ../../library/contextvars.rst:120
151+ #: ../../library/contextvars.rst:122
151152msgid "Manual Context Management"
152153msgstr ""
153154
154- #: ../../library/contextvars.rst:124
155+ #: ../../library/contextvars.rst:126
155156msgid "Returns a copy of the current :class:`~contextvars.Context` object."
156157msgstr ""
157158
158- #: ../../library/contextvars.rst:126
159+ #: ../../library/contextvars.rst:128
159160msgid ""
160161"The following snippet gets a copy of the current context and prints all "
161162"variables and their values that are set in it::"
162163msgstr ""
163164
164- #: ../../library/contextvars.rst:132
165+ #: ../../library/contextvars.rst:134
165166msgid ""
166167"The function has an O(1) complexity, i.e. works equally fast for contexts "
167168"with a few context variables and for contexts that have a lot of them."
168169msgstr ""
169170
170- #: ../../library/contextvars.rst:139
171+ #: ../../library/contextvars.rst:141
171172msgid "A mapping of :class:`ContextVars <ContextVar>` to their values."
172173msgstr ""
173174
174- #: ../../library/contextvars.rst:141
175+ #: ../../library/contextvars.rst:143
175176msgid ""
176177"``Context()`` creates an empty context with no values in it. To get a copy "
177178"of the current context use the :func:`~contextvars.copy_context` function."
178179msgstr ""
179180
180- #: ../../library/contextvars.rst:145
181+ #: ../../library/contextvars.rst:147
181182msgid "Context implements the :class:`collections.abc.Mapping` interface."
182183msgstr ""
183184
184- #: ../../library/contextvars.rst:149
185+ #: ../../library/contextvars.rst:151
185186msgid ""
186187"Execute ``callable(*args, **kwargs)`` code in the context object the *run* "
187188"method is called on. Return the result of the execution or propagate an "
188189"exception if one occurred."
189190msgstr ""
190191
191- #: ../../library/contextvars.rst:153
192+ #: ../../library/contextvars.rst:155
192193msgid ""
193194"Any changes to any context variables that *callable* makes will be contained "
194195"in the context object::"
195196msgstr ""
196197
197- #: ../../library/contextvars.rst:182
198+ #: ../../library/contextvars.rst:184
198199msgid ""
199200"The method raises a :exc:`RuntimeError` when called on the same context "
200201"object from more than one OS thread, or when called recursively."
201202msgstr ""
202203
203- #: ../../library/contextvars.rst:188
204+ #: ../../library/contextvars.rst:190
204205msgid "Return a shallow copy of the context object."
205206msgstr ""
206207
207- #: ../../library/contextvars.rst:192
208+ #: ../../library/contextvars.rst:194
208209msgid ""
209210"Return ``True`` if the *context* has a value for *var* set; return ``False`` "
210211"otherwise."
211212msgstr ""
212213
213- #: ../../library/contextvars.rst:197
214+ #: ../../library/contextvars.rst:199
214215msgid ""
215216"Return the value of the *var* :class:`ContextVar` variable. If the variable "
216217"is not set in the context object, a :exc:`KeyError` is raised."
217218msgstr ""
218219
219- #: ../../library/contextvars.rst:203
220+ #: ../../library/contextvars.rst:205
220221msgid ""
221222"Return the value for *var* if *var* has the value in the context object. "
222223"Return *default* otherwise. If *default* is not given, return ``None``."
223224msgstr ""
224225
225- #: ../../library/contextvars.rst:209
226+ #: ../../library/contextvars.rst:211
226227msgid "Return an iterator over the variables stored in the context object."
227228msgstr ""
228229
229- #: ../../library/contextvars.rst:214
230+ #: ../../library/contextvars.rst:216
230231msgid "Return the number of variables set in the context object."
231232msgstr ""
232233
233- #: ../../library/contextvars.rst:218
234+ #: ../../library/contextvars.rst:220
234235msgid "Return a list of all variables in the context object."
235236msgstr ""
236237
237- #: ../../library/contextvars.rst:222
238+ #: ../../library/contextvars.rst:224
238239msgid "Return a list of all variables' values in the context object."
239240msgstr ""
240241
241- #: ../../library/contextvars.rst:227
242+ #: ../../library/contextvars.rst:229
242243msgid ""
243244"Return a list of 2-tuples containing all variables and their values in the "
244245"context object."
245246msgstr ""
246247
247- #: ../../library/contextvars.rst:232
248+ #: ../../library/contextvars.rst:234
248249msgid "asyncio support"
249250msgstr ""
250251
251- #: ../../library/contextvars.rst:234
252+ #: ../../library/contextvars.rst:236
252253msgid ""
253254"Context variables are natively supported in :mod:`asyncio` and are ready to "
254255"be used without any extra configuration. For example, here is a simple echo "