Skip to content

Commit 5468be0

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 558b517b
1 parent 1486033 commit 5468be0

File tree

1 file changed

+37
-10
lines changed

1 file changed

+37
-10
lines changed

library/importlib.resources.abc.po

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-09-14 00:03+0000\n"
11+
"POT-Creation-Date: 2024-04-06 00:03+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -145,31 +145,58 @@ msgid "Return True if self is a file."
145145
msgstr ""
146146

147147
#: ../../library/importlib.resources.abc.rst:114
148-
#: ../../library/importlib.resources.abc.rst:118
149-
msgid "Return Traversable child in self."
148+
msgid ""
149+
"Traverse directories according to *pathsegments* and return the result as :"
150+
"class:`!Traversable`."
151+
msgstr ""
152+
153+
#: ../../library/importlib.resources.abc.rst:117
154+
msgid ""
155+
"Each *pathsegments* argument may contain multiple names separated by forward "
156+
"slashes (``/``, ``posixpath.sep`` ). For example, the following are "
157+
"equivalent::"
158+
msgstr ""
159+
160+
#: ../../library/importlib.resources.abc.rst:124
161+
msgid ""
162+
"Note that some :class:`!Traversable` implementations might not be updated to "
163+
"the latest version of the protocol. For compatibility with such "
164+
"implementations, provide a single argument without path separators to each "
165+
"call to ``joinpath``. For example::"
150166
msgstr ""
151167

152-
#: ../../library/importlib.resources.abc.rst:122
168+
#: ../../library/importlib.resources.abc.rst:133
169+
msgid ""
170+
"``joinpath`` accepts multiple *pathsegments*, and these segments may contain "
171+
"forward slashes as path separators. Previously, only a single *child* "
172+
"argument was accepted."
173+
msgstr ""
174+
175+
#: ../../library/importlib.resources.abc.rst:139
176+
msgid "Return Traversable child in self. Equivalent to ``joinpath(child)``."
177+
msgstr ""
178+
179+
#: ../../library/importlib.resources.abc.rst:144
153180
msgid ""
154181
"*mode* may be 'r' or 'rb' to open as text or binary. Return a handle "
155182
"suitable for reading (same as :attr:`pathlib.Path.open`)."
156183
msgstr ""
157184

158-
#: ../../library/importlib.resources.abc.rst:125
185+
#: ../../library/importlib.resources.abc.rst:147
159186
msgid ""
160187
"When opening as text, accepts encoding parameters such as those accepted by :"
161188
"class:`io.TextIOWrapper`."
162189
msgstr ""
163190

164-
#: ../../library/importlib.resources.abc.rst:130
191+
#: ../../library/importlib.resources.abc.rst:152
165192
msgid "Read contents of self as bytes."
166193
msgstr ""
167194

168-
#: ../../library/importlib.resources.abc.rst:134
195+
#: ../../library/importlib.resources.abc.rst:156
169196
msgid "Read contents of self as text."
170197
msgstr ""
171198

172-
#: ../../library/importlib.resources.abc.rst:139
199+
#: ../../library/importlib.resources.abc.rst:161
173200
msgid ""
174201
"An abstract base class for resource readers capable of serving the :meth:"
175202
"`importlib.resources.files` interface. Subclasses :class:`ResourceReader` "
@@ -178,13 +205,13 @@ msgid ""
178205
"TraversableResources` also supplies :class:`!ResourceReader`."
179206
msgstr ""
180207

181-
#: ../../library/importlib.resources.abc.rst:146
208+
#: ../../library/importlib.resources.abc.rst:168
182209
msgid ""
183210
"Loaders that wish to support resource reading are expected to implement this "
184211
"interface."
185212
msgstr ""
186213

187-
#: ../../library/importlib.resources.abc.rst:151
214+
#: ../../library/importlib.resources.abc.rst:173
188215
msgid ""
189216
"Returns a :class:`importlib.resources.abc.Traversable` object for the loaded "
190217
"package."

0 commit comments

Comments
 (0)