#NEWLINE# def _pack_words( self , fmt , num , bytes , val ) : #NEWLINE# #INDENT# if ( num == 1 ) : #NEWLINE# #INDENT# return struct . pack ( fmt , val ) #NEWLINE# #UNINDENT# outData = '' . join ( [ struct . pack ( fmt , val [ i ] ) for i in xrange ( num ) ] ) #NEWLINE# return outData