FltConsDiff.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:faampy 作者: ncasuk 项目源码 文件源码
def diff( self, id1, id2, r1=None, r2=None ):

        cdfl = CoreData.FileList()
        cdfl.__createFileList__()
        fn1 = cdf.__filterByFlightNumberAndRevision__( id1, r1 )
        fn2 = cdf.__filterByFlightNumberAndRevision__( id2, r2 )

        fc1 = __getFlightConstants__( fn1 )
        fc2 = __getFlightConstants__( fn2 )

        differ = difflib.HtmlDiff( tabsize=4, wrapcolumn=40 )
        html = differ.make_file( fc1, fc2, context=False )

        outfile = open( '/home/axel/tmp/difftest.html', 'w' )
        outfile.write(html)
        outfile.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号