#NEWLINE# def _set_byteorder( self , order ) : #NEWLINE# #INDENT# if ( not ( order in ( 0 , 1 ) ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Byte order parameter must be 0 (Big Endian) or 1 (Little Endian).' ) #NEWLINE# #UNINDENT# wkb_writer_set_byteorder ( self . ptr , order )