pwm/encoding.py
def _encode_long(self, val):
        '''
        encodes an integer of 8*self.chunklen[0] bits using the specified
        alphabet
        '''
        return ''.join([
                self.alphabet[(val//len(self.alphabet)**i) % len(self.alphabet)]
                for i in reversed(range(self.chunklen[1]))
            ])
def _encode_long(self, val):
        '''
        encodes an integer of 8*self.chunklen[0] bits using the specified
        alphabet
        '''
        return ''.join([
                self.alphabet[(val//len(self.alphabet)**i) % len(self.alphabet)]
                for i in reversed(range(self.chunklen[1]))
            ])
def _encode_long ( self , val ) : return '' . join ( [ self . alphabet [ ( val // len ( self . alphabet ) ** i ) % len ( self . alphabet ) ] for i in reversed ( range ( self . chunklen [ 1 ] ) ) ] )
encodes an integer of 8*self.chunklen[0] bits using the specified
        alphabet
encodes an integer of 8 * self . chunklen [ 0 ] bits using the specified alphabet