Skip to content

Commit 3483aa6

Browse files
authored
bpo-46583: remove unused sys.version_info check from selectors (GH-31023)
1 parent 06a4911 commit 3483aa6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Lib/selectors.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ def _fileobj_to_fd(fileobj):
5050
Object used to associate a file object to its backing
5151
file descriptor, selected event mask, and attached data.
5252
"""
53-
if sys.version_info >= (3, 5):
54-
SelectorKey.fileobj.__doc__ = 'File object registered.'
55-
SelectorKey.fd.__doc__ = 'Underlying file descriptor.'
56-
SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.'
57-
SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object.
58-
For example, this could be used to store a per-client session ID.''')
53+
SelectorKey.fileobj.__doc__ = 'File object registered.'
54+
SelectorKey.fd.__doc__ = 'Underlying file descriptor.'
55+
SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.'
56+
SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object.
57+
For example, this could be used to store a per-client session ID.''')
5958

6059

6160
class _SelectorMapping(Mapping):

0 commit comments

Comments
 (0)