#NEWLINE# @ memoize #NEWLINE# def get_package( command ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# c = CommandNotFound . CommandNotFound ( ) #NEWLINE# cmd = command . split ( ' ' ) #NEWLINE# pkgs = c . getPackages ( ( cmd [ 0 ] if ( cmd [ 0 ] != 'sudo' ) else cmd [ 1 ] ) ) #NEWLINE# ( name , _ ) = pkgs [ 0 ] #NEWLINE# return name #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# return None