def _check_apt():
 if (not HAS_APT):
  raise CommandExecutionError("Error: 'python-apt' package not installed")

def _check_apt ( ) : if ( not HAS_APT ) : raise CommandExecutionError ( "Error: 'python-apt' package not installed" )
abort if python-apt is not installed .