#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# self . is1xx = ( major == 1 ) #NEWLINE# self . is10x = ( self . is1xx and ( minor == 0 ) ) #NEWLINE# self . is15x = ( self . is1xx and ( minor == 5 ) ) #NEWLINE# self . is16x = ( self . is1xx and ( minor == 6 ) ) #NEWLINE# self . is2xx = ( major == 2 ) #NEWLINE# self . is20x = ( self . is2xx and ( minor == 0 ) ) #NEWLINE# self . is21x = ( self . is2xx and ( minor == 1 ) ) #NEWLINE# self . is22x = ( self . is2xx and ( minor == 2 ) ) #NEWLINE# self . is23x = ( self . is2xx and ( minor == 3 ) ) #NEWLINE# self . is24x = ( self . is2xx and ( minor == 4 ) ) #NEWLINE# self . is25x = ( self . is2xx and ( minor == 5 ) ) #NEWLINE# self . is26x = ( self . is2xx and ( minor == 6 ) ) #NEWLINE# self . is27x = ( self . is2xx and ( minor == 7 ) ) #NEWLINE# self . is3xx = ( major == 3 ) #NEWLINE# self . is30x = ( self . is3xx and ( minor == 0 ) ) #NEWLINE# self . is31x = ( self . is3xx and ( minor == 1 ) ) #NEWLINE# self . is32x = ( self . is3xx and ( minor == 2 ) ) #NEWLINE# self . is33x = ( self . is3xx and ( minor == 3 ) ) #NEWLINE# self . is34x = ( self . is3xx and ( minor == 4 ) ) #NEWLINE# self . is35x = ( self . is3xx and ( minor == 5 ) ) #NEWLINE# if ( _version . tuple > ( 2 , 6 ) ) : #NEWLINE# #INDENT# import platform #NEWLINE# _imp = platform . python_implementation ( ) #NEWLINE# self . is_pypy = ( _imp == PYPY ) #NEWLINE# self . is_ironpython = ( _imp == IRONPYTHON ) #NEWLINE# self . is_jython = ( _imp == JYTHON ) #NEWLINE# self . is_cpython = ( _imp == CPYTHON ) #NEWLINE# self . is_64bits = ( sys . maxsize > MAX_SIZE ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( major >= 2 ) : #NEWLINE# #INDENT# _ver = sys . version . lower ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _ver = string . lower ( sys . version ) #NEWLINE# #UNINDENT# if ( _version . tuple > ( 2 , 3 ) ) : #NEWLINE# #INDENT# self . is_pypy = ( 'pypy' in _ver ) #NEWLINE# self . is_ironpython = ( 'iron' in _ver ) #NEWLINE# self . is_jython = ( 'jython' in _ver ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( major >= 2 ) : #NEWLINE# #INDENT# self . is_pypy = ( _ver . find ( 'pypy' ) >= 0 ) #NEWLINE# self . is_ironpython = ( _ver . find ( 'iron' ) >= 0 ) #NEWLINE# self . is_jython = ( _ver . find ( 'jython' ) >= 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . is_pypy = ( string . find ( _ver , 'pypy' ) >= 0 ) #NEWLINE# self . is_ironpython = ( string . find ( _ver , 'iron' ) >= 0 ) #NEWLINE# self . is_jython = ( string . find ( _ver , 'jython' ) >= 0 ) #NEWLINE# #UNINDENT# #UNINDENT# self . is_cpython = ( ( not self . is_pypy ) and ( not self . is_ironpython ) and ( not self . is_jython ) ) #NEWLINE# self . is_64bits = ( sys . maxint > MAX_SIZE ) #NEWLINE# #UNINDENT# self . is_32bits = ( not self . is_64bits ) #NEWLINE# self . is_alpha = ( release == 'alpha' ) #NEWLINE# self . is_beta = ( release == 'beta' ) #NEWLINE# self . is_candidate = ( release == 'candidate' ) #NEWLINE# self . is_final = ( release == 'final' )