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