Changes between Version 215 and Version 216 of WikiStart


Ignore:
Timestamp:
04/12/2012 12:08:52 AM (7 years ago)
Author:
Glyph
Comment:

Remove name test in pubsub; it's good practice, but it's yet another line of code, and neither of the other examples have it.

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v215 v216  
    209209        return PubProtocol(self)
    210210
    211 if __name__ == '__main__':
    212     reactor.listenTCP(1025, PubFactory())
    213     reactor.run()
    214 }}}
    215 
    216 You can test this out by opening two terminals and doing 'telnet localhost 1025' in each, then typing things.
     211reactor.listenTCP(1025, PubFactory())
     212reactor.run()
     213}}}
     214
     215You can test this out by opening two terminals and doing `telnet localhost 1025` in each, then typing things.
    217216
    218217}}}