We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f59f72 commit 3944a20Copy full SHA for 3944a20
orangetool/orangetool_display.py
@@ -43,7 +43,7 @@ def hdmi_size(v=None,h=None,DEBUG=False):
43
:return: bool
44
'''
45
try:
46
- if type(v)!=int or type(h)!=int:
+ if (not isinstance(v,int)) or (not isinstance(h,int)):
47
hdmi_control = open("/sys/class/graphics/fb0/virtual_size", "r")
48
resolution=hdmi_control.read()[:-1].replace(",","x")
49
hdmi_control.close()
0 commit comments