Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebSockets Standard #180

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion db.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
{
"name": "HTML",
"href": "https://html.spec.whatwg.org/multipage/",
"description": "The HTML Standard is a kitchen sink full of technologies for the web. It includes the core markup language for the web, HTML, as well as numerous APIs like Web Sockets, Web Workers, `localStorage`, etc.",
"description": "The HTML Standard is a kitchen sink full of technologies for the web. It includes the core markup language for the web, HTML, as well as numerous APIs like Web Workers, `localStorage`, etc.",
"authors": [
{
"name": "Anne van Kesteren",
Expand Down Expand Up @@ -239,6 +239,23 @@
7
],
"twitter": "htmlstandard"
},
{
"name": "WebSockets",
"href": "https://websockets.spec.whatwg.org/",
"description": "The WebSockets Standard provides APIs to enable web applications to maintain bidirectional communications with server-side processes.",
"authors": [
{
"name": "Adam Rice",
"email": "[email protected]"
}
],
"reference": "WEBSOCKETS",
"review_draft_schedule": [
3,
9
],
"twitter": "whatsockets"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def normalize_internal(input):
return string + "\n"

def normalize(input):
open("db.json", "w").write(normalize_internal(input))
open("db.json", "w", encoding="utf-8").write(normalize_internal(input))

def normalize_db(db):
for (name, normalize_algorithm, sort_key) in [
Expand Down Expand Up @@ -96,7 +96,7 @@ def main():
if command not in ["validate", "normalize"]:
usage()
else:
input = open("db.json", "r").read()
input = open("db.json", "r", encoding="utf-8").read()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: shouldn't line 18 be changed as well then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess I just didn't test that codepath. Will do.

if command == "validate":
validate(input)
elif command == "normalize":
Expand Down