<s> '''<STR_LIT>''' <EOL> import sys <EOL> _is_epydoc = hasattr ( sys , '<STR_LIT>' ) and sys . is_epydoc <EOL> def get_display ( ) : <EOL> '''<STR_LIT>''' <EOL> from pyglet . app import displays <EOL> for display in displays : <EOL> return display <EOL> return Display ( ) <EOL> if _is_epydoc : <EOL> from pyglet . canvas . base import Display , Screen , Canvas <EOL> else : <EOL> if sys . platform == '<STR_LIT>' : <EOL> from pyglet import options as pyglet_options <EOL> if pyglet_options [ '<STR_LIT>' ] : <EOL> from pyglet . canvas . cocoa import CocoaDisplay as Display <EOL> from pyglet . canvas . cocoa import CocoaScreen as Screen <EOL> from pyglet . canvas . cocoa import CocoaCanvas as Canvas <EOL> else : <EOL> from pyglet . canvas . carbon import CarbonDisplay as Display <EOL> from pyglet . canvas . carbon import CarbonScreen as Screen <EOL> from pyglet . canvas . carbon import CarbonCanvas as Canvas <EOL> elif sys . platform in ( '<STR_LIT:win32>' , '<STR_LIT>' ) : <EOL> from pyglet . canvas . win32 import Win32Display as Display <EOL> from pyglet . canvas . win32 import Win32Screen as Screen <EOL> from pyglet . canvas . win32 import Win32Canvas as Canvas <EOL> else : <EOL> from pyglet . canvas . xlib import XlibDisplay as Display <EOL> from pyglet . canvas . xlib import XlibScreen as Screen <EOL> from pyglet . canvas . xlib import XlibCanvas as Canvas </s>
