#NEWLINE# def _pythonize( value ) : #NEWLINE# #INDENT# if ( value in _PYTHON_CONSTANTS ) : #NEWLINE# #INDENT# return _PYTHON_CONSTANTS [ value ] #NEWLINE# #UNINDENT# for convert in ( int , float ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return convert ( value ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# if ( ( convert [ : 1 ] == value [ ( - 1 ) : ] ) and ( value [ 0 ] in '"\'' ) ) : #NEWLINE# #INDENT# value = value [ 1 : ( - 1 ) ] #NEWLINE# #UNINDENT# return str ( value )