docs/genrelnotes.py
def add_to_sitemap(from_version, to_version):
    '''
       Adds release note entry to sitemap.txt.
    '''
    sitemapfile = join_paths('..', 'sitemap.txt')
    s_f = open(sitemapfile)
    lines = s_f.readlines()
    s_f.close()
    with open(sitemapfile, 'w') as s_f:
        for line in lines:
            if 'Release-notes' in line and from_version in line:
                new_line = line.replace(from_version, to_version)
                s_f.write(new_line)
            s_f.write(line)

       Adds release note entry to sitemap.txt.
    
Adds release note entry to sitemap.txt.
Adds release note entry to sitemap . txt .
def add_to_sitemap(from_version, to_version):
    sitemapfile = join_paths('..', 'sitemap.txt')
    s_f = open(sitemapfile)
    lines = s_f.readlines()
    s_f.close()
    with open(sitemapfile, 'w') as s_f:
        for line in lines:
            if 'Release-notes' in line and from_version in line:
                new_line = line.replace(from_version, to_version)
                s_f.write(new_line)
            s_f.write(line)
def add_to_sitemap ( from_version , to_version ) : sitemapfile = join_paths ( '..' , 'sitemap.txt' ) s_f = open ( sitemapfile ) lines = s_f . readlines ( ) s_f . close ( ) with open ( sitemapfile , 'w' ) as s_f : for line in lines : if 'Release-notes' in line and from_version in line : new_line = line . replace ( from_version , to_version ) s_f . write ( new_line ) s_f . write ( line )
Adds release note entry to sitemap.txt.
Adds release note entry to sitemap . txt .
'''
       Adds release note entry to sitemap.txt.
    '''
from_version
to_version