#NEWLINE# @ contextmanager #NEWLINE# def extern( self , from_ = None , namespace = None ) : #NEWLINE# #INDENT# head = 'extern' #NEWLINE# if from_ : #NEWLINE# #INDENT# head += ( ' from "%s"' % ( repr ( from_ ) [ 1 : ( - 1 ) ] , ) ) #NEWLINE# #UNINDENT# if namespace : #NEWLINE# #INDENT# head += ( ' namespace "%s"' % ( repr ( namespace ) [ 1 : ( - 1 ) ] , ) ) #NEWLINE# #UNINDENT# with self . suite ( head ) : #NEWLINE# #INDENT# ( yield ) #NEWLINE# #UNINDENT# self . sep ( )