You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable preview checks in ruff by default. NFC (#26559)
The vast majority of the changes here fall into two catagories:
1. Adding `encoding='utf-8'` to file open operations.
2. Using set literals when testing membership.
Also, update to the latest version of `ruff`.
Copy file name to clipboardExpand all lines: site/source/get_wiki.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@
37
37
38
38
wiki_checkout='emscripten.wiki/'
39
39
temp_set_of_codemarkup=set()
40
-
logfile=open(logfilename, 'w')
40
+
logfile=open(logfilename, 'w', encoding='utf-8')
41
41
# snapshot_version_information = '.. note:: This is a **snapshot** of the wiki: %s\n\n' % strftime("%a, %d %b %Y %H:%M", gmtime())
42
42
snapshot_version_information='.. note:: This article was migrated from the wiki (%s) and is now the "master copy" (the version in the wiki will be deleted). It may not be a perfect rendering of the original but we hope to fix that soon!\n\n'%time.strftime("%a, %d %b %Y %H:%M", time.gmtime())
logfile.write('\n\nCODE MARKUP THAT WONT BE LINKED (add entry to mapped_wiki_inline_code if one of these need to be linked. The tool get-api-items.py can be used to generate the list of the documented API items. \n')
0 commit comments