File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -492,16 +492,19 @@ msgid ""
492492" function can be overridden to implement access controls for a server. The "
493493"default implementation always returns :const:`True`."
494494msgstr ""
495+ "必须返回一个布尔值;如果值为 :const:`True`,请求将被处理。 而如果值为 :const:`False`,请求将被拒绝。 "
496+ "此函数可被重载以实现服务器的访问控制。 默认实现总是返回 :const:`True`。"
495497
496498#: ../../library/socketserver.rst:381
497499msgid ""
498500"Support for the :term:`context manager` protocol was added. Exiting the "
499501"context manager is equivalent to calling :meth:`server_close`."
500502msgstr ""
503+ "添加了对 :term:`context manager` 协议的支持。 退出上下文管理器与调用 :meth:`server_close` 等效。"
501504
502505#: ../../library/socketserver.rst:387
503506msgid "Request Handler Objects"
504- msgstr ""
507+ msgstr "请求处理句柄对象 "
505508
506509#: ../../library/socketserver.rst:391
507510msgid ""
@@ -510,12 +513,14 @@ msgid ""
510513"new :meth:`handle` method, and can override any of the other methods. A new"
511514" instance of the subclass is created for each request."
512515msgstr ""
516+ "这是所有请求处理句柄对象的超类。 它定义了下文列出的接口。 一个实体请求处理句柄子类必须定义新的 :meth:`handle` "
517+ "方法,并可重载任何其他方法。 对于每个请求都会创建一个新的子类的实例。"
513518
514519#: ../../library/socketserver.rst:400
515520msgid ""
516521"Called before the :meth:`handle` method to perform any initialization "
517522"actions required. The default implementation does nothing."
518- msgstr ""
523+ msgstr "会在 :meth:`handle` 方法之前被调用以执行任何必要的初始化操作。 默认实现不执行任何操作。 "
519524
520525#: ../../library/socketserver.rst:406
521526msgid ""
You can’t perform that action at this time.
0 commit comments