#NEWLINE# def iter_extensions( extension ) : #NEWLINE# #INDENT# ' Depth-first iterator over sub-extensions on `extension`.\n    ' #NEWLINE# for ( _ , ext ) in inspect . getmembers ( extension , is_extension ) : #NEWLINE# #INDENT# for item in iter_extensions ( extension ) : #NEWLINE# #INDENT# ( yield item ) #NEWLINE# #UNINDENT# ( yield ext )