#NEWLINE# def shouldStillKeepGoing( self , path ) : #NEWLINE# #INDENT# "\n        Don't keep going through links that are opaque to the observer.\n        " #NEWLINE# for opacity in path . of ( IElectromagneticMedium ) : #NEWLINE# #INDENT# if opacity . isOpaque ( self . observer ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True