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

Skip to content

Commit 8b0719f

Browse files
committed
Fix test sphinx-lint c-api/iter
1 parent 94e1552 commit 8b0719f

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

c-api/iter.po

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgstr ""
1111
"Project-Id-Version: Python 3.8\n"
1212
"Report-Msgid-Bugs-To: \n"
1313
"POT-Creation-Date: 2024-11-21 16:38-0300\n"
14-
"PO-Revision-Date: 2025-04-10 20:00+0200\n"
14+
"PO-Revision-Date: 2025-04-10 22:41+0200\n"
1515
"Last-Translator: David Spindola\n"
1616
"Language-Team: python-doc-es\n"
1717
"Language: es\n"
@@ -96,28 +96,33 @@ msgid ""
9696
" /* continue doing useful work */\n"
9797
"}"
9898
msgstr ""
99-
"``PyObject *iterator = PyObject_GetIter(obj);``\n"
100-
"``PyObject *item;``\n"
99+
"PyObject ``*iterator`` = PyObject_GetIter(obj);\n"
100+
"PyObject ``*item``;\n"
101101
"\n"
102-
"``if (iterator == NULL) {``\n"
103-
"`` /\\* propaga el error \\*/``\n"
104-
"``}``\n"
102+
"if (iterator == NULL) {\n"
103+
" ``/*`` propaga el error ``*/``\n"
104+
"\n"
105+
"}\n"
106+
"\n"
107+
"while ((item = PyIter_Next(iterator))) {\n"
108+
" ``/*`` hace algo con *item* ``*/``\n"
109+
" ...\n"
110+
" ``/*`` libera la referencia cuando termina ``*/``\n"
111+
" Py_DECREF(item);\n"
112+
"\n"
113+
"}\n"
114+
"\n"
115+
"Py_DECREF(iterator);\n"
116+
"\n"
117+
"if (PyErr_Occurred()) {\n"
118+
" ``/*`` propaga el error ``*/``\n"
105119
"\n"
106-
"``while ((item = PyIter_Next(iterator))) {``\n"
107-
"`` /\\* hace algo con *item* \\*/``\n"
108-
"`` ...``\n"
109-
"`` /\\* libera la referencia cuando termina \\*/``\n"
110-
"`` Py_DECREF(item);``\n"
111-
"``}``\n"
120+
"}\n"
112121
"\n"
113-
"``Py_DECREF(iterator);``\n"
122+
"else {\n"
123+
" ``/*`` continua haciendo trabajo útil ``*/``\n"
114124
"\n"
115-
"``if (PyErr_Occurred()) {``\n"
116-
"`` /\\* propaga el error \\*/``\n"
117-
"``}``\n"
118-
"``else {``\n"
119-
"`` /\\* continua haciendo trabajo útil \\*/``\n"
120-
"``}``"
125+
"}"
121126

122127
#: ../Doc/c-api/iter.rst:59
123128
msgid ""

0 commit comments

Comments
 (0)