Files
shredos.x86_64/support/testing/tests/package/sample_python_twisted.py
2025-01-10 19:34:56 +00:00

12 lines
279 B
Python

from twisted.internet import protocol, reactor, endpoints
from twisted.web.client import readBody # noqa: F401
from twisted.web import xmlrpc, server # noqa: F401
class F(protocol.Factory):
pass
endpoints.serverFromString(reactor, "tcp:1234").listen(F())
reactor.run()