Skip to content

Commit

Permalink
Rewrite the connection level ping method to fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeamland committed Jun 7, 2017
1 parent 365e120 commit 3e93344
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wsproto/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,5 @@ def accept(self, event, subprotocol=None):
self._state = ConnectionState.OPEN

def ping(self, payload=None):
if payload is not None:
payload = bytes(payload)
else:
payload = b''
payload = bytes(payload or b'')
self._outgoing += self._proto.ping(payload)

0 comments on commit 3e93344

Please sign in to comment.