#NEWLINE# def _new_mods( pre_mods , post_mods ) : #NEWLINE# #INDENT# '\n    Return a list of the new modules, pass an lsmod dict before running\n    modprobe and one after modprobe has run\n    ' #NEWLINE# pre = set ( ) #NEWLINE# post = set ( ) #NEWLINE# for mod in pre_mods : #NEWLINE# #INDENT# pre . add ( mod [ 'module' ] ) #NEWLINE# #UNINDENT# for mod in post_mods : #NEWLINE# #INDENT# post . add ( mod [ 'module' ] ) #NEWLINE# #UNINDENT# return ( post - pre )