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.
1 parent 29b79e8 commit e727dc5Copy full SHA for e727dc5
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