#NEWLINE# def LPORT( port ) : #NEWLINE# #INDENT# import re #NEWLINE# db = [ ] #NEWLINE# fixmesempai = re . findall ( '..?' , decimaltohex ( str ( port ) ) ) #NEWLINE# for x in fixmesempai : #NEWLINE# #INDENT# if ( len ( port ) == 1 ) : #NEWLINE# #INDENT# x = ( '0' + x ) #NEWLINE# #UNINDENT# db . append ( x ) #NEWLINE# #UNINDENT# return ( '\\x' + '\\x' . join ( db ) )