#NEWLINE# def build_address( address ) : #NEWLINE# #INDENT# address = address . strip ( b'.' ) #NEWLINE# labels = address . split ( b'.' ) #NEWLINE# results = [ ] #NEWLINE# for label in labels : #NEWLINE# #INDENT# l = len ( label ) #NEWLINE# if ( l > 63 ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# results . append ( common . chr ( l ) ) #NEWLINE# results . append ( label ) #NEWLINE# #UNINDENT# results . append ( b'\x00' ) #NEWLINE# return b'' . join ( results )