Ignore:
Timestamp:
2013-03-19T20:30:24Z (12 years ago)
Author:
Nick Murdoch <nick@…>
Children:
76ca5cb
Parents:
26f3b5f
Message:

Protocol class now has a name attribute and can be subclassed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/python/examples/sampleplugin.py

    r26f3b5f r1dcfd1f  
    99print "hello, I'm a test plugin running on Python", sys.version_info
    1010
    11 print bpython.ProtocolPlugin
    12 print bpython.ProtocolPlugin()
     11print bpython.Protocol
     12print bpython.Protocol()
    1313print bpython.register_protocol
    1414
    1515try:
    16     class MyProtocol(bpython.ProtocolPlugin):
     16    class MyProtocol(bpython.Protocol):
    1717        pass
    1818except Exception, e:
Note: See TracChangeset for help on using the changeset viewer.