#NEWLINE# def do_upgrade( env , ver , cursor ) : #NEWLINE# #INDENT# 'Move options from [trac] section to more appropriately-named sections.\n    ' #NEWLINE# config = env . config #NEWLINE# config . set ( 'svn' , 'authz_file' , config . get ( 'trac' , 'authz_file' ) ) #NEWLINE# config . set ( 'svn' , 'authz_module_name' , config . get ( 'trac' , 'authz_module_name' ) ) #NEWLINE# config . set ( 'versioncontrol' , 'default_repository_type' , config . get ( 'trac' , 'repository_type' , 'svn' ) ) #NEWLINE# config . remove ( 'trac' , 'authz_file' ) #NEWLINE# config . remove ( 'trac' , 'authz_module_name' ) #NEWLINE# config . remove ( 'trac' , 'repository_type' ) #NEWLINE# backup_config_file ( cursor , '.db39.bak' ) #NEWLINE# config . save ( )