Skip to content
Snippets Groups Projects
  • W. Trevor King's avatar
    e29c46a9
    irkerd: Add Python-3-compatible string handling · e29c46a9
    W. Trevor King authored
    This implements the necessary changes to work around the (str,
    unicode) -> (bytes, str) transition.  We decode the bytes as soon as
    possible after receiving them in the Irker*Handler classes.  For
    IRC-side connections, we still encode outgoing data right before
    sending it in IRCServerConnection.ship.
    
    We decode incoming IRC-side bytes in IRCServerConnection.consume,
    after storing them as bytes in the LineBufferedStream
    IRCServerConnection.buffer.  That ensures that we don't try and decode
    partial code points which are split across two socket messages.
    e29c46a9
    History
    irkerd: Add Python-3-compatible string handling
    W. Trevor King authored
    This implements the necessary changes to work around the (str,
    unicode) -> (bytes, str) transition.  We decode the bytes as soon as
    possible after receiving them in the Irker*Handler classes.  For
    IRC-side connections, we still encode outgoing data right before
    sending it in IRCServerConnection.ship.
    
    We decode incoming IRC-side bytes in IRCServerConnection.consume,
    after storing them as bytes in the LineBufferedStream
    IRCServerConnection.buffer.  That ensures that we don't try and decode
    partial code points which are split across two socket messages.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.