Skip to content

Commit 1618b95

Browse files
committed
updated sys.platform check for linux since 'in' operator is no longer needed.
1 parent 2913d6f commit 1618b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_py/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def get_backends():
114114
if sys.platform == "win32" and int(platform.win32_ver()[0].split(".")[0]) >= 8:
115115
possible_backends.append("_camera (MSMF)")
116116

117-
if "linux" in sys.platform:
117+
if sys.platform == "linux":
118118
possible_backends.append("_camera (V4L2)")
119119

120120
if "darwin" in sys.platform:

0 commit comments

Comments
 (0)