Skip to content

Commit c6495cf

Browse files
committed
Use isinstance instead of type(), as suggested by @The-Compiler
1 parent de7f7c5 commit c6495cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytestqt/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def handle(self, msg_type, msg):
491491
Method to be installed using qInstallMsgHandler, stores each message
492492
into the `messages` attribute.
493493
"""
494-
if type(msg) is bytes:
494+
if isinstance(msg, bytes):
495495
msg = msg.decode('utf-8', errors='replace')
496496
self.messages.append(self.Message(msg_type, msg))
497497

0 commit comments

Comments
 (0)