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

Skip to content

Commit 20e9982

Browse files
[po] auto sync
1 parent f926102 commit 20e9982

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

library/wsgiref.po

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ msgid ""
545545
" occurred, and dump the traceback to ``sys.stderr`` or some other error "
546546
"stream."
547547
msgstr ""
548+
"任何被检测到的不一致性都会导致引发 :exc:`AssertionError`;但是请注意,如何对待这些错误取决于具体服务器。 "
549+
"例如,:mod:`wsgiref.simple_server` 和其他基于 :mod:`wsgiref.handlers` "
550+
"的服务器(它们没有重载错误处理方法来做其他操作)将简单地输出一条消息报告发生了错误,并将回溯转给 ``sys.stderr`` 或者其他错误数据流。"
548551

549552
#: ../../library/wsgiref.rst:409
550553
msgid ""
@@ -555,10 +558,13 @@ msgid ""
555558
"to ``sys.stderr`` (*not* ``wsgi.errors``, unless they happen to be the same "
556559
"object)."
557560
msgstr ""
561+
"这个包装器也可能会使用 :mod:`warnings` 模块生成输出来指明存在问题但实际上未被 :pep:`3333` 所禁止的行为。 除非它们被 "
562+
"Python 命令行选项或 :mod:`warnings` API 所屏蔽,否则任何此类警告都将被写入到 ``sys.stderr`` (*不是* "
563+
"``wsgi.errors``,除非它们恰好是同一个对象)。"
558564

559565
#: ../../library/wsgiref.rst:441
560566
msgid ":mod:`wsgiref.handlers` -- server/gateway base classes"
561-
msgstr ""
567+
msgstr ":mod:`wsgiref.handlers` -- 服务器/网关基类"
562568

563569
#: ../../library/wsgiref.rst:447
564570
msgid ""
@@ -567,6 +573,8 @@ msgid ""
567573
"a WSGI application, as long as they are given a CGI-like environment, along "
568574
"with input, output, and error streams."
569575
msgstr ""
576+
"此模块提供了用于实现 WSGI 服务器和网关的处理句柄基类。 这些基类可处理大部分与 WSGI "
577+
"应用程序通信的工作,只要给予它们一个带有输入、输出和错误流的 CGI 类环境。"
570578

571579
#: ../../library/wsgiref.rst:455
572580
msgid ""
@@ -575,6 +583,9 @@ msgid ""
575583
" run it as a CGI script. Simply invoke ``CGIHandler().run(app)``, where "
576584
"``app`` is the WSGI application object you wish to invoke."
577585
msgstr ""
586+
"通过 ``sys.stdin``, ``sys.stdout``, ``sys.stderr`` 和 ``os.environ`` 发起基于 CGI "
587+
"的调用。 这在当你有一个 WSGI 应用程序并想将其作为 CGI 脚本运行时很有用处。 只需发起调用 "
588+
"``CGIHandler().run(app)``,其中 ``app`` 是你想要发起调用的 WSGI 应用程序。"
578589

579590
#: ../../library/wsgiref.rst:460
580591
msgid ""
@@ -583,6 +594,9 @@ msgid ""
583594
"``wsgi.multiprocess`` to true, and always uses :mod:`sys` and :mod:`os` to "
584595
"obtain the necessary CGI streams and environment."
585596
msgstr ""
597+
"该类是 :class:`BaseCGIHandler` 的子类,它将设置 ``wsgi.run_once`` "
598+
"为真值,``wsgi.multithread`` 为假值,``wsgi.multiprocess`` 为真值,并总是使用 :mod:`sys` 和 "
599+
":mod:`os` 来获取所需的 CGI 流和环境。"
586600

587601
#: ../../library/wsgiref.rst:468
588602
msgid ""

0 commit comments

Comments
 (0)