"""Copyright (c) 2022 theleekycauldronPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software."""importpywikibotaspwbfiles_to_publish=open("/data/project/leekbot/source_code_publisher/files_to_publish.txt","r").read().splitlines()site=pwb.Site("en","wikipedia")forfileinfiles_to_publish:file=file.split(" ")wiki_page=pwb.Page(site,file[1])source_page=open(file[0],"r").read()source_page="<syntax"+"highlight lang=\"python\">\n"+source_page+"\n</syntax"+"highlight>"wiki_page.text=source_pagewiki_page.save(summary="updates from toolforge")