Problem
examples/twisted/wamp/pubsub/basic/frontend.py calls runner.run(Component) twice in a row:
runner = ApplicationRunner(url, realm, extra)
runner.run(Component)
runner.run(Component) # duplicate
(lines 68-69). The second call is dead/duplicate code — ApplicationRunner.run()
starts and blocks on the reactor, so the second call is at best redundant and at
worst confusing for readers learning from the example.
Fix
Remove the duplicate second runner.run(Component) line so the example ends with
a single runner.run(Component).
Notes
This analysis was produced with AI assistance (Claude Code) and requires human review before filing. Which I did.
Checklist
Problem
examples/twisted/wamp/pubsub/basic/frontend.pycallsrunner.run(Component)twice in a row:(lines 68-69). The second call is dead/duplicate code —
ApplicationRunner.run()starts and blocks on the reactor, so the second call is at best redundant and at
worst confusing for readers learning from the example.
Fix
Remove the duplicate second
runner.run(Component)line so the example ends witha single
runner.run(Component).Notes
issue is filed so that PR has an originating issue to reference
(
Closes #<this-issue>), per our issue-first workflow.This analysis was produced with AI assistance (Claude Code) and requires human review before filing. Which I did.
Checklist