Skip to content

Commit 1c2e752

Browse files
authored
Merge pull request #3246 from sonotopes/sys.platform-check-pygame-ce
updated 'in' operator for sys.platform linux check
2 parents 2913d6f + 1618b95 commit 1c2e752

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)