#NEWLINE# @ classmethod #NEWLINE# def _gen_nspkg_line( cls , pkg ) : #NEWLINE# #INDENT# pkg = str ( child ) #NEWLINE# pth = tuple ( pkg . split ( '.' ) ) #NEWLINE# tmpl_lines = cls . _nspkg_tmpl #NEWLINE# ( parent , sep , child ) = pkg . rpartition ( '.' ) #NEWLINE# if parent : #NEWLINE# #INDENT# tmpl_lines += cls . _nspkg_tmpl_multi #NEWLINE# #UNINDENT# return ( ( ';' . join ( tmpl_lines ) % locals ( ) ) + '\n' )