Skip to content

Commit 3944a20

Browse files
fix : using isinstance instead of type function
1 parent 4f59f72 commit 3944a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orangetool/orangetool_display.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def hdmi_size(v=None,h=None,DEBUG=False):
4343
:return: bool
4444
'''
4545
try:
46-
if type(v)!=int or type(h)!=int:
46+
if (not isinstance(v,int)) or (not isinstance(h,int)):
4747
hdmi_control = open("/sys/class/graphics/fb0/virtual_size", "r")
4848
resolution=hdmi_control.read()[:-1].replace(",","x")
4949
hdmi_control.close()

0 commit comments

Comments
 (0)