Skip to content

Commit 6b30cfd

Browse files
[po] auto sync
1 parent b6b20d2 commit 6b30cfd

3 files changed

Lines changed: 67 additions & 18 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "3.23%", "updated_at": "2026-06-14T20:26:19Z"}
1+
{"translation": "3.23%", "updated_at": "2026-06-15T18:45:14Z"}

library/warnings.mo

0 Bytes
Binary file not shown.

library/warnings.po

Lines changed: 66 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-05-08 18:34+0000\n"
14+
"POT-Creation-Date: 2026-06-15 18:22+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n"
@@ -590,7 +590,7 @@ msgid ""
590590
msgstr ""
591591

592592
#: ../../library/warnings.rst:337 ../../library/warnings.rst:379
593-
#: ../../library/warnings.rst:647
593+
#: ../../library/warnings.rst:666
594594
msgid ""
595595
"See :ref:`warning-concurrent-safe` for details on the concurrency-safety of "
596596
"the :class:`catch_warnings` context manager when used in programs using "
@@ -942,41 +942,90 @@ msgid ""
942942
":const:`False` (the default) the context manager returns :class:`None` on "
943943
"entry. If *record* is :const:`True`, a list is returned that is "
944944
"progressively populated with objects as seen by a custom :func:`showwarning`"
945-
" function (which also suppresses output to ``sys.stdout``). Each object in "
946-
"the list has attributes with the same names as the arguments to "
947-
":func:`showwarning`."
945+
" function (which also suppresses output to ``sys.stderr``). Each object in "
946+
"the list is guaranteed to have the following attributes:"
947+
msgstr ""
948+
949+
#: ../../library/warnings.rst:632
950+
msgid "``message``: the warning message (an instance of :exc:`Warning`)"
948951
msgstr ""
949952

950953
#: ../../library/warnings.rst:633
954+
msgid "``category``: the warning category (a subclass of :exc:`Warning`)"
955+
msgstr ""
956+
957+
#: ../../library/warnings.rst:634
958+
msgid "``filename``: the file name where the warning occurred (:class:`str`)"
959+
msgstr ""
960+
961+
#: ../../library/warnings.rst:635
962+
msgid "``lineno``: the line number in the file (:class:`int`)"
963+
msgstr ""
964+
965+
#: ../../library/warnings.rst:636
966+
msgid "``file``: the file object used for output (if any), or ``None``"
967+
msgstr ""
968+
969+
#: ../../library/warnings.rst:637
970+
msgid "``line``: the line of source code (if available), or ``None``"
971+
msgstr ""
972+
973+
#: ../../library/warnings.rst:638
974+
msgid ""
975+
"``source``: the original object that generated the warning (if available), "
976+
"or ``None``"
977+
msgstr ""
978+
979+
#: ../../library/warnings.rst:640
980+
msgid ""
981+
"``module``: the module name where the warning occurred (:class:`str`), or "
982+
"``None``"
983+
msgstr ""
984+
985+
#: ../../library/warnings.rst:643
986+
msgid "The ``source`` attribute was added."
987+
msgstr ""
988+
989+
#: ../../library/warnings.rst:646
990+
msgid "The ``module`` attribute was added."
991+
msgstr ""
992+
993+
#: ../../library/warnings.rst:649
994+
msgid ""
995+
"The type of these objects is not specified and may change; only the presence"
996+
" of these attributes is guaranteed."
997+
msgstr ""
998+
999+
#: ../../library/warnings.rst:652
9511000
msgid ""
9521001
"The *module* argument takes a module that will be used instead of the module"
9531002
" returned when you import :mod:`!warnings` whose filter will be protected. "
9541003
"This argument exists primarily for testing the :mod:`!warnings` module "
9551004
"itself."
9561005
msgstr ""
9571006

958-
#: ../../library/warnings.rst:638
1007+
#: ../../library/warnings.rst:657
9591008
msgid ""
9601009
"If the *action* argument is not ``None``, the remaining arguments are passed"
9611010
" to :func:`simplefilter` as if it were called immediately on entering the "
9621011
"context."
9631012
msgstr ""
9641013

965-
#: ../../library/warnings.rst:642
1014+
#: ../../library/warnings.rst:661
9661015
msgid ""
9671016
"See :ref:`warning-filter` for the meaning of the *category* and *lineno* "
9681017
"parameters."
9691018
msgstr ""
9701019

971-
#: ../../library/warnings.rst:654
1020+
#: ../../library/warnings.rst:673
9721021
msgid "Added the *action*, *category*, *lineno*, and *append* parameters."
9731022
msgstr ""
9741023

975-
#: ../../library/warnings.rst:660
1024+
#: ../../library/warnings.rst:679
9761025
msgid "Concurrent safety of Context Managers"
9771026
msgstr ""
9781027

979-
#: ../../library/warnings.rst:662
1028+
#: ../../library/warnings.rst:681
9801029
msgid ""
9811030
"The behavior of :class:`catch_warnings` context manager depends on the "
9821031
":data:`sys.flags.context_aware_warnings` flag. If the flag is true, the "
@@ -987,7 +1036,7 @@ msgid ""
9871036
" to true for free-threaded builds and false otherwise."
9881037
msgstr ""
9891038

990-
#: ../../library/warnings.rst:670
1039+
#: ../../library/warnings.rst:689
9911040
msgid ""
9921041
"If the :data:`~sys.flags.context_aware_warnings` flag is false, then "
9931042
":class:`catch_warnings` will modify the global attributes of the "
@@ -997,7 +1046,7 @@ msgid ""
9971046
"time, the behavior is undefined."
9981047
msgstr ""
9991048

1000-
#: ../../library/warnings.rst:677
1049+
#: ../../library/warnings.rst:696
10011050
msgid ""
10021051
"If the flag is true, :class:`catch_warnings` will not modify global "
10031052
"attributes and will instead use a :class:`~contextvars.ContextVar` to store "
@@ -1006,30 +1055,30 @@ msgid ""
10061055
"safe."
10071056
msgstr ""
10081057

1009-
#: ../../library/warnings.rst:683
1058+
#: ../../library/warnings.rst:702
10101059
msgid ""
10111060
"The *record* parameter of the context handler also behaves differently "
10121061
"depending on the value of the flag. When *record* is true and the flag is "
10131062
"false, the context manager works by replacing and then later restoring the "
10141063
"module's :func:`showwarning` function. That is not concurrent-safe."
10151064
msgstr ""
10161065

1017-
#: ../../library/warnings.rst:688
1066+
#: ../../library/warnings.rst:707
10181067
msgid ""
10191068
"When *record* is true and the flag is true, the :func:`showwarning` function"
10201069
" is not replaced. Instead, the recording status is indicated by an internal"
10211070
" property in the context variable. In this case, the :func:`showwarning` "
10221071
"function will not be restored when exiting the context handler."
10231072
msgstr ""
10241073

1025-
#: ../../library/warnings.rst:693
1074+
#: ../../library/warnings.rst:712
10261075
msgid ""
10271076
"The :data:`~sys.flags.context_aware_warnings` flag can be set the "
10281077
":option:`-X context_aware_warnings<-X>` command-line option or by the "
10291078
":envvar:`PYTHON_CONTEXT_AWARE_WARNINGS` environment variable."
10301079
msgstr ""
10311080

1032-
#: ../../library/warnings.rst:699
1081+
#: ../../library/warnings.rst:718
10331082
msgid ""
10341083
"It is likely that most programs that desire thread-safe behaviour of the "
10351084
"warnings module will also want to set the "
@@ -1042,7 +1091,7 @@ msgid ""
10421091
"by a :class:`catch_warnings` context manager will no longer be active."
10431092
msgstr ""
10441093

1045-
#: ../../library/warnings.rst:712
1094+
#: ../../library/warnings.rst:731
10461095
msgid ""
10471096
"Added the :data:`sys.flags.context_aware_warnings` flag and the use of a "
10481097
"context variable for :class:`catch_warnings` if the flag is true. Previous "

0 commit comments

Comments
 (0)