3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 23:54:08 +01:00

FakeIRC: swap arrows in debug output

This is for more consistency with the real protocol debug output:

-> is protocol OUTBOUND - irc.send()
<- is protocol INBOUND - irc.run()
This commit is contained in:
James Lu 2015-07-06 12:53:24 -07:00
parent b3f369aa81
commit fe1f90bcd1

View File

@ -29,12 +29,12 @@ class FakeIRC(main.Irc):
def run(self, data): def run(self, data):
"""Queues a message to the fake IRC server.""" """Queues a message to the fake IRC server."""
log.debug('-> ' + data) log.debug('<- ' + data)
self.proto.handle_events(self, data) self.proto.handle_events(self, data)
def send(self, data): def send(self, data):
self.messages.append(data) self.messages.append(data)
log.debug('<- ' + data) log.debug('-> ' + data)
def takeMsgs(self): def takeMsgs(self):
"""Returns a list of messages sent by the protocol module since """Returns a list of messages sent by the protocol module since