Kaydet (Commit) 3ebaea00 authored tarafından Yury Selivanov's avatar Yury Selivanov

Sync selectors.py with upstream asyncio

üst 45c84cc0
...@@ -49,11 +49,12 @@ SelectorKey.__doc__ = """SelectorKey(fileobj, fd, events, data) ...@@ -49,11 +49,12 @@ SelectorKey.__doc__ = """SelectorKey(fileobj, fd, events, data)
Object used to associate a file object to its backing Object used to associate a file object to its backing
file descriptor, selected event mask, and attached data. file descriptor, selected event mask, and attached data.
""" """
SelectorKey.fileobj.__doc__ = 'File object registered.' if sys.version_info >= (3, 5):
SelectorKey.fd.__doc__ = 'Underlying file descriptor.' SelectorKey.fileobj.__doc__ = 'File object registered.'
SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.' SelectorKey.fd.__doc__ = 'Underlying file descriptor.'
SelectorKey.data.__doc__ = ('''Optional opaque data associated to this file object. SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.'
For example, this could be used to store a per-client session ID.''') 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): class _SelectorMapping(Mapping):
"""Mapping of file objects to selector keys.""" """Mapping of file objects to selector keys."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment