Skip to content

Commit f551cd4

Browse files
committed
#941 - remove fuzzy flags
1 parent eb9522f commit f551cd4

File tree

1 file changed

+64
-7
lines changed

1 file changed

+64
-7
lines changed

library/devmode.po

+64-7
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ msgstr "파이썬 개발 모드를 활성화하는 것은 다음 명령과 유
5454

5555
#: ../../library/devmode.rst:24
5656
msgid "PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler"
57-
msgstr ""
57+
msgstr "PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler"
5858

5959
#: ../../library/devmode.rst:26
6060
msgid "Effects of the Python Development Mode:"
@@ -145,16 +145,16 @@ msgstr ""
145145
"``default``\\로 설정하십시오."
146146

147147
#: ../../library/devmode.rst:61
148-
#, fuzzy
149148
msgid ""
150149
"Call :func:`faulthandler.enable` at Python startup to install handlers "
151150
"for the :const:`~signal.SIGSEGV`, :const:`~signal.SIGFPE`, "
152151
":const:`~signal.SIGABRT`, :const:`~signal.SIGBUS` and "
153152
":const:`~signal.SIGILL` signals to dump the Python traceback on a crash."
154153
msgstr ""
155-
"파이썬 시작 시 :func:`faulthandler.enable`\\을 호출하여 :const:`SIGSEGV`, "
156-
":const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` 및 :const:`SIGILL` 시그널에"
157-
" 대한 처리기를 설치하여 충돌 시 파이썬 트레이스백을 덤프합니다."
154+
"파이썬 시작 시 :func:`faulthandler.enable`\\을 호출하여 :const:`~signal.SIGSEGV`, "
155+
":const:`~signal.SIGFPE`, :const:`~signal.SIGABRT`, "
156+
":const:`~signal.SIGBUS` 및 :const:`~signal.SIGILL` 시그널에 대한 처리기를 설치하여 충돌 시 "
157+
"파이썬 트레이스백을 덤프합니다."
158158

159159
#: ../../library/devmode.rst:66
160160
msgid ""
@@ -202,11 +202,10 @@ msgid "The :class:`io.IOBase` destructor logs ``close()`` exceptions."
202202
msgstr ":class:`io.IOBase` 파괴자는 ``close()`` 예외를 로그 합니다."
203203

204204
#: ../../library/devmode.rst:85
205-
#, fuzzy
206205
msgid ""
207206
"Set the :attr:`~sys.flags.dev_mode` attribute of :data:`sys.flags` to "
208207
"``True``."
209-
msgstr ":attr:`sys.flags`\\의 :attr:`~sys.flags.dev_mode` 어트리뷰트를 ``True``\\로 설정합니다."
208+
msgstr ":data:`sys.flags`\\의 :attr:`~sys.flags.dev_mode` 어트리뷰트를 ``True``\\로 설정합니다."
210209

211210
#: ../../library/devmode.rst:88
212211
msgid ""
@@ -271,6 +270,16 @@ msgid ""
271270
"if __name__ == \"__main__\":\n"
272271
" main()"
273272
msgstr ""
273+
"import sys\n"
274+
"\n"
275+
"def main():\n"
276+
" fp = open(sys.argv[1])\n"
277+
" nlines = len(fp.readlines())\n"
278+
" print(nlines)\n"
279+
" # 파일이 묵시적으로 닫힙니다\n"
280+
"\n"
281+
"if __name__ == \"__main__\":\n"
282+
" main()"
274283

275284
#: ../../library/devmode.rst:127
276285
msgid ""
@@ -285,6 +294,8 @@ msgid ""
285294
"$ python script.py README.txt\n"
286295
"269"
287296
msgstr ""
297+
"$ python script.py README.txt\n"
298+
"269"
288299

289300
#: ../../library/devmode.rst:135
290301
msgid ""
@@ -301,6 +312,12 @@ msgid ""
301312
" main()\n"
302313
"ResourceWarning: Enable tracemalloc to get the object allocation traceback"
303314
msgstr ""
315+
"$ python -X dev script.py README.txt\n"
316+
"269\n"
317+
"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper "
318+
"name='README.rst' mode='r' encoding='UTF-8'>\n"
319+
" main()\n"
320+
"ResourceWarning: Enable tracemalloc to get the object allocation traceback"
304321

305322
#: ../../library/devmode.rst:145
306323
msgid ""
@@ -321,6 +338,16 @@ msgid ""
321338
" File \"script.py\", lineno 4\n"
322339
" fp = open(sys.argv[1])"
323340
msgstr ""
341+
"$ python -X dev -X tracemalloc=5 script.py README.rst\n"
342+
"269\n"
343+
"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper "
344+
"name='README.rst' mode='r' encoding='UTF-8'>\n"
345+
" main()\n"
346+
"Object allocated at (most recent call last):\n"
347+
" File \"script.py\", lineno 10\n"
348+
" main()\n"
349+
" File \"script.py\", lineno 4\n"
350+
" fp = open(sys.argv[1])"
324351

325352
#: ../../library/devmode.rst:160
326353
msgid "The fix is to close explicitly the file. Example using a context manager::"
@@ -334,6 +361,11 @@ msgid ""
334361
" nlines = len(fp.readlines())\n"
335362
" print(nlines)"
336363
msgstr ""
364+
"def main():\n"
365+
" # 블록에서 빠져나갈 때 파일을 명시적으로 닫습니다\n"
366+
" with open(sys.argv[1]) as fp:\n"
367+
" nlines = len(fp.readlines())\n"
368+
" print(nlines)"
337369

338370
#: ../../library/devmode.rst:168
339371
msgid ""
@@ -367,6 +399,16 @@ msgid ""
367399
"\n"
368400
"main()"
369401
msgstr ""
402+
"import os\n"
403+
"\n"
404+
"def main():\n"
405+
" fp = open(__file__)\n"
406+
" firstline = fp.readline()\n"
407+
" print(firstline.rstrip())\n"
408+
" os.close(fp.fileno())\n"
409+
" # 파일이 묵시적으로 닫힙니다\n"
410+
"\n"
411+
"main()"
370412

371413
#: ../../library/devmode.rst:190
372414
msgid "By default, Python does not emit any warning:"
@@ -377,6 +419,8 @@ msgid ""
377419
"$ python script.py\n"
378420
"import os"
379421
msgstr ""
422+
"$ python script.py\n"
423+
"import os"
380424

381425
#: ../../library/devmode.rst:197
382426
msgid ""
@@ -402,6 +446,19 @@ msgid ""
402446
" main()\n"
403447
"OSError: [Errno 9] Bad file descriptor"
404448
msgstr ""
449+
"$ python -X dev script.py\n"
450+
"import os\n"
451+
"script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper "
452+
"name='script.py' mode='r' encoding='UTF-8'>\n"
453+
" main()\n"
454+
"ResourceWarning: Enable tracemalloc to get the object allocation "
455+
"traceback\n"
456+
"Exception ignored in: <_io.TextIOWrapper name='script.py' mode='r' "
457+
"encoding='UTF-8'>\n"
458+
"Traceback (most recent call last):\n"
459+
" File \"script.py\", line 10, in <module>\n"
460+
" main()\n"
461+
"OSError: [Errno 9] Bad file descriptor"
405462

406463
#: ../../library/devmode.rst:213
407464
msgid ""

0 commit comments

Comments
 (0)