7c1f107026a4b12cb687a1c4623148c4bdbf6e39,dm_control/render/pyopengl/osmesa_renderer.py,,,#,24
Before Change
"(should be either unset or {!r})."
.format(_CURRENT_PLATFORM, _OSMESA_PLATFORM))
del _PYOPENGL_PLATFORM, _OSMESA_PLATFORM, _CURRENT_PLATFORM
// pylint: disable=g-import-not-at-top
from dm_control.render import base
from OpenGL import GL
After Change
if not PYOPENGL_PLATFORM:
os.environ[constants.PYOPENGL_PLATFORM] = constants.OSMESA
elif PYOPENGL_PLATFORM != constants.OSMESA:
raise ImportError(
"Cannot use OSMesa rendering platform. "
"The PYOPENGL_PLATFORM environment variable is set to {!r} "
"(should be either unset or {!r})."
.format(PYOPENGL_PLATFORM, constants.OSMESA))
// pylint: disable=g-import-not-at-top
from OpenGL import GL
from OpenGL import osmesa
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: deepmind/dm_control
Commit Name: 7c1f107026a4b12cb687a1c4623148c4bdbf6e39
Time: 2018-11-30
Author: stunya@google.com
File Name: dm_control/render/pyopengl/osmesa_renderer.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: c535a7cc882b287c620733c9be03a6960322fc21
Time: 2018-01-09
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_cairo.py
Class Name:
Method Name:
Project Name: kkroening/ffmpeg-python
Commit Name: 6887ad8bac178483b7debcefa1c52de979ec0085
Time: 2017-07-06
Author: karlk@kralnet.us
File Name: ffmpeg/_run.py
Class Name:
Method Name: get_args