Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a1c948 commit 3aa7fe4Copy full SHA for 3aa7fe4
1 file changed
_websiteutils/make_redirects_links.py
@@ -172,11 +172,10 @@ def main():
172
fout.write(st)
173
_log.info('Done links and redirects')
174
# change the canonical url for all html to the newest version in the docs:
175
- for entry in os.scandir('./'):
176
- if entry.is_dir() and (entry.name in tocheck[1:]):
177
- _log.info(f'TOP DIR: {entry.name}')
178
- do_canonicals(entry.name)
179
+ pool = multiprocessing.Pool()
+ pool.map(do_canonicals, tocheck[1:])
+ pool.close()
180
181
if __name__ == "__main__":
182
main()
0 commit comments