@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.9\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2021-04-24 06:08 +0000\n "
16+ "POT-Creation-Date : 2021-05-20 06:27 +0000\n "
1717"PO-Revision-Date : 2019-09-01 14:41+0000\n "
1818"
Last-Translator :
Freesand Leo <[email protected] >, 2019\n "
1919"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -27,13 +27,13 @@ msgstr ""
2727msgid "Using :mod:`!importlib.metadata`"
2828msgstr ""
2929
30- #: ../../library/importlib.metadata.rst:10
30+ #: ../../library/importlib.metadata.rst:13
3131msgid ""
3232"This functionality is provisional and may deviate from the usual version "
3333"semantics of the standard library."
3434msgstr ""
3535
36- #: ../../library/importlib.metadata.rst:13
36+ #: ../../library/importlib.metadata.rst:16
3737msgid ""
3838"``importlib.metadata`` is a library that provides for access to installed "
3939"package metadata. Built in part on Python's import system, this library "
@@ -44,7 +44,7 @@ msgid ""
4444"efficient ``pkg_resources`` package."
4545msgstr ""
4646
47- #: ../../library/importlib.metadata.rst:22
47+ #: ../../library/importlib.metadata.rst:25
4848msgid ""
4949"By \" installed package\" we generally mean a third-party package installed "
5050"into Python's ``site-packages`` directory via tools such as `pip "
@@ -55,52 +55,52 @@ msgid ""
5555" Through an extension mechanism, the metadata can live almost anywhere."
5656msgstr ""
5757
58- #: ../../library/importlib.metadata.rst:33
58+ #: ../../library/importlib.metadata.rst:36
5959msgid "Overview"
6060msgstr "概述"
6161
62- #: ../../library/importlib.metadata.rst:35
62+ #: ../../library/importlib.metadata.rst:38
6363msgid ""
6464"Let's say you wanted to get the version string for a package you've "
6565"installed using ``pip``. We start by creating a virtual environment and "
6666"installing something into it:"
6767msgstr ""
6868
69- #: ../../library/importlib.metadata.rst:45
69+ #: ../../library/importlib.metadata.rst:48
7070msgid "You can get the version string for ``wheel`` by running the following:"
7171msgstr ""
7272
73- #: ../../library/importlib.metadata.rst:54
73+ #: ../../library/importlib.metadata.rst:57
7474msgid ""
7575"You can also get the set of entry points keyed by group, such as "
7676"``console_scripts``, ``distutils.commands`` and others. Each group contains"
7777" a sequence of :ref:`EntryPoint <entry-points>` objects."
7878msgstr ""
7979
80- #: ../../library/importlib.metadata.rst:58
80+ #: ../../library/importlib.metadata.rst:61
8181msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
8282msgstr ""
8383
84- #: ../../library/importlib.metadata.rst:63
84+ #: ../../library/importlib.metadata.rst:66
8585msgid ""
8686"You can also get a :ref:`distribution's version number <version>`, list its "
8787":ref:`constituent files <files>`, and get a list of the distribution's "
8888":ref:`requirements`."
8989msgstr ""
9090
91- #: ../../library/importlib.metadata.rst:69
91+ #: ../../library/importlib.metadata.rst:72
9292msgid "Functional API"
9393msgstr "可用 API"
9494
95- #: ../../library/importlib.metadata.rst:71
95+ #: ../../library/importlib.metadata.rst:74
9696msgid "This package provides the following functionality via its public API."
9797msgstr ""
9898
99- #: ../../library/importlib.metadata.rst:77
99+ #: ../../library/importlib.metadata.rst:80
100100msgid "Entry points"
101101msgstr ""
102102
103- #: ../../library/importlib.metadata.rst:79
103+ #: ../../library/importlib.metadata.rst:82
104104msgid ""
105105"The ``entry_points()`` function returns a dictionary of all entry points, "
106106"keyed by group. Entry points are represented by ``EntryPoint`` instances; "
@@ -110,7 +110,7 @@ msgid ""
110110"``.value`` attribute::"
111111msgstr ""
112112
113- #: ../../library/importlib.metadata.rst:103
113+ #: ../../library/importlib.metadata.rst:106
114114msgid ""
115115"The ``group`` and ``name`` are arbitrary values defined by the package "
116116"author and usually a client will wish to resolve all entry points for a "
@@ -120,37 +120,37 @@ msgid ""
120120"their definition, and usage."
121121msgstr ""
122122
123- #: ../../library/importlib.metadata.rst:113
123+ #: ../../library/importlib.metadata.rst:116
124124msgid "Distribution metadata"
125125msgstr ""
126126
127- #: ../../library/importlib.metadata.rst:115
127+ #: ../../library/importlib.metadata.rst:118
128128msgid ""
129129"Every distribution includes some metadata, which you can extract using the "
130130"``metadata()`` function::"
131131msgstr ""
132132
133- #: ../../library/importlib.metadata.rst:120
133+ #: ../../library/importlib.metadata.rst:123
134134msgid ""
135135"The keys of the returned data structure [#f1]_ name the metadata keywords, "
136136"and their values are returned unparsed from the distribution metadata::"
137137msgstr ""
138138
139- #: ../../library/importlib.metadata.rst:130
139+ #: ../../library/importlib.metadata.rst:133
140140msgid "Distribution versions"
141141msgstr ""
142142
143- #: ../../library/importlib.metadata.rst:132
143+ #: ../../library/importlib.metadata.rst:135
144144msgid ""
145145"The ``version()`` function is the quickest way to get a distribution's "
146146"version number, as a string::"
147147msgstr ""
148148
149- #: ../../library/importlib.metadata.rst:142
149+ #: ../../library/importlib.metadata.rst:145
150150msgid "Distribution files"
151151msgstr ""
152152
153- #: ../../library/importlib.metadata.rst:144
153+ #: ../../library/importlib.metadata.rst:147
154154msgid ""
155155"You can also get the full set of files contained within a distribution. The"
156156" ``files()`` function takes a distribution package name and returns all of "
@@ -160,11 +160,11 @@ msgid ""
160160"For example::"
161161msgstr ""
162162
163- #: ../../library/importlib.metadata.rst:160
163+ #: ../../library/importlib.metadata.rst:163
164164msgid "Once you have the file, you can also read its contents::"
165165msgstr ""
166166
167- #: ../../library/importlib.metadata.rst:171
167+ #: ../../library/importlib.metadata.rst:174
168168msgid ""
169169"In the case where the metadata file listing files (RECORD or SOURCES.txt) is"
170170" missing, ``files()`` will return ``None``. The caller may wish to wrap "
@@ -174,51 +174,51 @@ msgid ""
174174" known to have the metadata present."
175175msgstr ""
176176
177- #: ../../library/importlib.metadata.rst:182
177+ #: ../../library/importlib.metadata.rst:185
178178msgid "Distribution requirements"
179179msgstr ""
180180
181- #: ../../library/importlib.metadata.rst:184
181+ #: ../../library/importlib.metadata.rst:187
182182msgid ""
183183"To get the full set of requirements for a distribution, use the "
184184"``requires()`` function::"
185185msgstr ""
186186
187- #: ../../library/importlib.metadata.rst:192
187+ #: ../../library/importlib.metadata.rst:195
188188msgid "Distributions"
189189msgstr ""
190190
191- #: ../../library/importlib.metadata.rst:194
191+ #: ../../library/importlib.metadata.rst:197
192192msgid ""
193193"While the above API is the most common and convenient usage, you can get all"
194194" of that information from the ``Distribution`` class. A ``Distribution`` is"
195195" an abstract object that represents the metadata for a Python package. You "
196196"can get the ``Distribution`` instance::"
197197msgstr ""
198198
199- #: ../../library/importlib.metadata.rst:202
199+ #: ../../library/importlib.metadata.rst:205
200200msgid ""
201201"Thus, an alternative way to get the version number is through the "
202202"``Distribution`` instance::"
203203msgstr ""
204204
205- #: ../../library/importlib.metadata.rst:208
205+ #: ../../library/importlib.metadata.rst:211
206206msgid ""
207207"There are all kinds of additional metadata available on the ``Distribution``"
208208" instance::"
209209msgstr ""
210210
211- #: ../../library/importlib.metadata.rst:216
211+ #: ../../library/importlib.metadata.rst:219
212212msgid ""
213213"The full set of available metadata is not described here. See :pep:`566` "
214214"for additional details."
215215msgstr ""
216216
217- #: ../../library/importlib.metadata.rst:221
217+ #: ../../library/importlib.metadata.rst:224
218218msgid "Extending the search algorithm"
219219msgstr ""
220220
221- #: ../../library/importlib.metadata.rst:223
221+ #: ../../library/importlib.metadata.rst:226
222222msgid ""
223223"Because package metadata is not available through :data:`sys.path` searches,"
224224" or package loaders directly, the metadata for a package is found through "
@@ -227,14 +227,14 @@ msgid ""
227227"path finders <meta path finder>` on :data:`sys.meta_path`."
228228msgstr ""
229229
230- #: ../../library/importlib.metadata.rst:229
230+ #: ../../library/importlib.metadata.rst:232
231231msgid ""
232232"The default ``PathFinder`` for Python includes a hook that calls into "
233233"``importlib.metadata.MetadataPathFinder`` for finding distributions loaded "
234234"from typical file-system-based paths."
235235msgstr ""
236236
237- #: ../../library/importlib.metadata.rst:233
237+ #: ../../library/importlib.metadata.rst:236
238238msgid ""
239239"The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the "
240240"interface expected of finders by Python's import system. "
@@ -244,14 +244,14 @@ msgid ""
244244"base class, which defines this abstract method::"
245245msgstr ""
246246
247- #: ../../library/importlib.metadata.rst:247
247+ #: ../../library/importlib.metadata.rst:250
248248msgid ""
249249"The ``DistributionFinder.Context`` object provides ``.path`` and ``.name`` "
250250"properties indicating the path to search and name to match and may supply "
251251"other relevant context."
252252msgstr ""
253253
254- #: ../../library/importlib.metadata.rst:251
254+ #: ../../library/importlib.metadata.rst:254
255255msgid ""
256256"What this means in practice is that to support finding distribution package "
257257"metadata in locations other than the file system, subclass ``Distribution`` "
@@ -260,11 +260,11 @@ msgid ""
260260"method."
261261msgstr ""
262262
263- #: ../../library/importlib.metadata.rst:264
263+ #: ../../library/importlib.metadata.rst:267
264264msgid "Footnotes"
265265msgstr "备注"
266266
267- #: ../../library/importlib.metadata.rst:265
267+ #: ../../library/importlib.metadata.rst:268
268268msgid ""
269269"Technically, the returned distribution metadata object is an "
270270":class:`email.message.EmailMessage` instance, but this is an implementation "
0 commit comments