#NEWLINE# def _assertMarkdownPath( self , text_path , encoding = 'utf-8' , opts = None , toc_html_path = None , metadata_path = None ) : #NEWLINE# #INDENT# text = codecs . open ( text_path , 'r' , encoding = encoding ) . read ( ) #NEWLINE# html_path = ( splitext ( text_path ) [ 0 ] + '.html' ) #NEWLINE# html = codecs . open ( html_path , 'r' , encoding = encoding ) . read ( ) #NEWLINE# extra = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if toc_html_path : #NEWLINE# #INDENT# extra [ 'toc_html' ] = codecs . open ( toc_html_path , 'r' , encoding = encoding ) . read ( ) #NEWLINE# extra [ 'toc_html_path' ] = toc_html_path #NEWLINE# #UNINDENT# if metadata_path : #NEWLINE# #INDENT# extra [ 'metadata' ] = json_loads ( codecs . open ( metadata_path , 'r' , encoding = encoding ) . read ( ) ) #NEWLINE# extra [ 'metadata_path' ] = metadata_path #NEWLINE# #UNINDENT# self . _assertMarkdown ( text , html , text_path , html_path , opts = opts , ** extra )