From a951f3d1acb4e12236eb78a1961143ea689d51e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Fri, 29 Nov 2013 18:57:47 +0100 Subject: [PATCH] Remove trailing blanks. --- Doc/library/selectors.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Doc/library/selectors.rst b/Doc/library/selectors.rst index 5acd0c2818..a6df909364 100644 --- a/Doc/library/selectors.rst +++ b/Doc/library/selectors.rst @@ -214,29 +214,29 @@ Examples of selector usage:: >>> import selectors >>> import socket - >>> + >>> >>> s = selectors.DefaultSelector() >>> r, w = socket.socketpair() - >>> + >>> >>> r.setblocking(False) >>> w.setblocking(False) - >>> + >>> >>> s.register(r, selectors.EVENT_READ) SelectorKey(fileobj=, fd=4, events=1, data=None) >>> s.register(w, selectors.EVENT_WRITE) SelectorKey(fileobj=, fd=5, events=2, data=None) - >>> + >>> >>> print(s.select()) [(SelectorKey(fileobj=, fd=5, events=2, data=None), 2)] - >>> + >>> >>> for key, events in s.select(): ... if events & selectors.EVENT_WRITE: ... key.fileobj.send(b'spam') - ... + ... 4 >>> for key, events in s.select(): ... if events & selectors.EVENT_READ: ... print(key.fileobj.recv(1024)) - ... + ... b'spam' >>> s.close() -- 2.40.0