* Colin Watson <[email protected]>, 2015-07-01, 09:51:
     # A no-op context manager.
     context = contextlib.contextmanager(lambda: (None for _ in [None]))()

This could be simplified to:

context = contextlib.contextmanager([None].__iter__)()

--
Jakub Wilk


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to