We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc28f93 + e727dc5 commit 4387373Copy full SHA for 4387373
OpenGL/platform/egl.py
@@ -73,7 +73,8 @@ def EGL(self):
73
# https://github.com/raspberrypi/firmware/issues/110
74
import os
75
if os.path.exists('/proc/cpuinfo'):
76
- info = open('/proc/cpuinfo').read()
+ with open('/proc/cpuinfo', 'r') as f:
77
+ info = f.read()
78
if 'BCM2708' in info or 'BCM2709' in info:
79
assert self.GLES2
80
try:
0 commit comments