From 34e3de80e7e7d2b7c4ebbd0b77ede72ac65604ff Mon Sep 17 00:00:00 2001 From: Jonathan Erlich <35579235+joerlop@users.noreply.github.com> Date: Fri, 22 Nov 2019 11:58:59 -0500 Subject: [PATCH] Updated parse method of PongMessage class Parse method is a classmethod. --- code-ch13/network.py | 1 + 1 file changed, 1 insertion(+) diff --git a/code-ch13/network.py b/code-ch13/network.py index 8f3fa860..b731c2de 100644 --- a/code-ch13/network.py +++ b/code-ch13/network.py @@ -221,6 +221,7 @@ class PongMessage: def __init__(self, nonce): self.nonce = nonce + @classmethod def parse(cls, s): nonce = s.read(8) return cls(nonce)