def _machine_bytes():
 machine_hash = hashlib.md5()
 if PY3:
  machine_hash.update(socket.gethostname().encode())
 else:
  machine_hash.update(socket.gethostname())
 return machine_hash.digest()[0:3]

def _machine_bytes ( ) : machine_hash = hashlib . md5 ( ) if PY3 : machine_hash . update ( socket . gethostname ( ) . encode ( ) ) else : machine_hash . update ( socket . gethostname ( ) ) return machine_hash . digest ( ) [ 0 : 3 ]
get the machine portion of an objectid .