daemon.py revision b04c8c83e8d5670b0923c7cd7d6ea622b0187289
def _convert_fileobj(fileobj):
try:
except AttributeError:
return fileobj
"""Return a list of socket activated descriptors
Example::
(in primary window)
$ systemd-activate -l 2000 python3 -c \\
'from systemd.daemon import listen_fds; print(listen_fds())'
(in another window)
$ telnet localhost 2000
(in primary window)
...
Execing python3 (...)
[3]
"""