def _EncodeUniquifier(uniquifier):
 if (type(uniquifier) in (int, long)):
  byte_str = util.EncodeVarLengthNumber(uniquifier)
 else:
  (client_id, server_id) = uniquifier
  assert ((server_id is None) or (type(server_id) in (str, unicode))), (server_id, type(server_id))
  byte_str = util.EncodeVarLengthNumber(client_id)
  if (server_id is not None):
   byte_str += str(server_id)
 return byte_str

def _EncodeUniquifier ( uniquifier ) : if ( type ( uniquifier ) in ( int , long ) ) : byte_str = util . EncodeVarLengthNumber ( uniquifier ) else : ( client_id , server_id ) = uniquifier assert ( ( server_id is None ) or ( type ( server_id ) in ( str , unicode ) ) ) , ( server_id , type ( server_id ) ) byte_str = util . EncodeVarLengthNumber ( client_id ) if ( server_id is not None ) : byte_str += str ( server_id ) return byte_str
if "uniquifier" is an int or long .