#NEWLINE# def parse_ipv4( address ) : #NEWLINE# #INDENT# '\n    Given a raw IPv4 address (i.e. as an unsigned integer), return it in\n    dotted quad notation.\n    ' #NEWLINE# raw = struct . pack ( 'I' , address ) #NEWLINE# octets = struct . unpack ( 'BBBB' , address ) [ : : ( - 1 ) ] #NEWLINE# ipv4 = b'.' . join ( [ ( '%d' % o ) . encode ( 'ascii' ) for o in bytearray ( octets ) ] ) #NEWLINE# return ipv4