Skip to content
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
2 changes: 1 addition & 1 deletion DerivedGeneralCategory.txt.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
993261c82681a5580aaa42c6184d61a289a1eaa48022fded929d00487066b0ed1014f35cbc0890c6db5f3cbf8ca51dd99362e088aceedf548cfb3cc8d72bb14e DerivedGeneralCategory.txt
a8f5a4c366f441632cf0bfa9f3e89016b4efdc3c1190bd99b014346494b36167f9a4f40c41224738eb4b569d5258dfa7802f6907a3021e06a71e0fb7376a10a0 DerivedGeneralCategory.txt
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ INCLUDES := \
FILES := Makefile MANIFEST.in pyjson5.pyx README.rst pyproject.toml ${INCLUDES}

DerivedGeneralCategory.txt: DerivedGeneralCategory.txt.sha
curl -s -o $@ https://www.unicode.org/Public/16.0.0/ucd/extracted/DerivedGeneralCategory.txt
curl -s -o $@ https://www.unicode.org/Public/17.0.0/ucd/extracted/DerivedGeneralCategory.txt
python scripts/sha512sum.py -c $@.sha

src/_unicode_cat_of.hpp: DerivedGeneralCategory.txt scripts/make_unicode_categories.py
Expand Down
5 changes: 2 additions & 3 deletions scripts/transcode-to-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from argparse import ArgumentParser
from collections.abc import Mapping, Sequence
from codecs import open as codecs_open
from itertools import zip_longest
from json import loads
from logging import basicConfig, DEBUG, getLogger
Expand Down Expand Up @@ -57,7 +56,7 @@ def eq_with_nans(left, right):

args = argparser.parse_args()
try:
with codecs_open(args.input.resolve(), "r", "UTF-8") as f:
with open(args.input.resolve(), "r", encoding="UTF-8") as f:
data = f.read()
except Exception:
logger.error("Could not even read file: %s", args.input, exc_info=True)
Expand Down Expand Up @@ -91,7 +90,7 @@ def eq_with_nans(left, right):

if args.output is not None:
try:
with codecs_open(args.output.resolve(), "w", "UTF-8") as f:
with open(args.output.resolve(), "w", encoding="UTF-8") as f:
f.write(data)
except Exception:
logger.error("Could open output file: %s", args.output, exc_info=True)
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ maintainer_email = pypi.org@k6i.de
long_description = file: README.rst
long_description_content_type = text/x-rst

license = MIT OR Apache-2.0
license_files = LICENSE.MIT, LICENSE.Apache

classifiers =
Expand Down
Loading