def write_short(self, n):
if n < <NUM_LIT:0> or n > <NUM_LIT>:<EOL><INDENT>raise FrameSyntaxError(<EOL>'<STR_LIT>'.format(n))<EOL><DEDENT>self._flushbits()<EOL>self.out.write(pack('<STR_LIT>', int(n)))<EOL>
Write an integer as an unsigned 16-bit value.