def _move(src, dst):
 try:
  os.remove(os.path.join(dst, os.path.basename(src)))
 except OSError as exc:
  if (exc.errno != errno.ENOENT):
   _abort(exc)
 try:
  shutil.move(src, dst)
 except shutil.Error as exc:
  _abort(exc)

def _move ( src , dst ) : try : os . remove ( os . path . join ( dst , os . path . basename ( src ) ) ) except OSError as exc : if ( exc . errno != errno . ENOENT ) : _abort ( exc ) try : shutil . move ( src , dst ) except shutil . Error as exc : _abort ( exc )
wrapper around shutil .