From: Nikita Sobolev Date: Wed, 2 Feb 2022 08:15:02 +0000 (+0300) Subject: bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) X-Git-Tag: v3.11.0a5~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3483aa65dfebfc60a87ea9db3f20da84be41f606;p=thirdparty%2FPython%2Fcpython.git bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) --- diff --git a/Lib/selectors.py b/Lib/selectors.py index bb15a1cb1bad..af6a4f94b500 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -50,12 +50,11 @@ SelectorKey.__doc__ = """SelectorKey(fileobj, fd, events, data) Object used to associate a file object to its backing file descriptor, selected event mask, and attached data. """ -if sys.version_info >= (3, 5): - SelectorKey.fileobj.__doc__ = 'File object registered.' - SelectorKey.fd.__doc__ = 'Underlying file descriptor.' - SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.' - SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object. - For example, this could be used to store a per-client session ID.''') +SelectorKey.fileobj.__doc__ = 'File object registered.' +SelectorKey.fd.__doc__ = 'Underlying file descriptor.' +SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.' +SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object. +For example, this could be used to store a per-client session ID.''') class _SelectorMapping(Mapping):