Skip to content

Commit d834eb5

Browse files
ES-Alexanderpatrickelectric
authored andcommitted
pingmessage: [correction] value equivalence uses '==', not 'is'
1 parent b163dcd commit d834eb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

brping/pingmessage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def parse_byte(self, msg_byte):
470470
for byte in test_protocol_version_buf:
471471
result = p.parse_byte(byte)
472472

473-
if result is p.NEW_MESSAGE:
473+
if result == p.NEW_MESSAGE:
474474
print(p.rx_msg)
475475
else:
476476
print("fail:", result)
@@ -481,7 +481,7 @@ def parse_byte(self, msg_byte):
481481
for byte in test_profile_buf:
482482
result = p.parse_byte(byte)
483483

484-
if result is p.NEW_MESSAGE:
484+
if result == p.NEW_MESSAGE:
485485
print(p.rx_msg)
486486
else:
487487
print("fail:", result)

0 commit comments

Comments
 (0)