Skip to content

Commit 60e0ba2

Browse files
committed
Bumped is-unicode-supported to 1.0.2
1 parent 5a2c681 commit 60e0ba2

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

get-min-py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ license-files = [
1919
]
2020
dependencies = [
2121
"colorama~=0.4.6 ; platform_system == 'Windows'",
22-
"is-unicode-supported~=1.0.0",
22+
"is-unicode-supported~=1.0.2",
2323
"json5~=0.13.0",
2424
]
2525
requires-python = ">=3.8,<4"

get-min-py/src/get_min_py/cli/lib/language.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
6666

6767
if not lang_code.startswith('en'): # fetch non-English msgs from jsDelivr
6868
import is_unicode_supported, non_latin_locales
69-
if not hasattr(get_msgs, 'cached_unicode_support'):
70-
get_msgs.cached_unicode_support = is_unicode_supported() # type: ignore
71-
if lang_code.split('_')[0] in non_latin_locales and not get_msgs.cached_unicode_support: # type: ignore
69+
if lang_code.split('_')[0] in non_latin_locales and not is_unicode_supported(): # type: ignore
7270
return sn(**msgs) # EN ones cuz non-Latin not supported
7371
msg_base_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}' \
7472
'/src/get_min_py/data/_locales'

remove-json-keys/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license-files = [
2020
dependencies = [
2121
"colorama~=0.4.6 ; platform_system == 'Windows'",
2222
"find-project-root~=1.0.3",
23-
"is-unicode-supported~=1.0.0",
23+
"is-unicode-supported~=1.0.2",
2424
"json5~=0.13.0",
2525
"non-latin-locales~=1.0.1",
2626
]

remove-json-keys/src/remove_json_keys/cli/lib/language.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
6666

6767
if not lang_code.startswith('en'): # fetch non-English msgs from jsDelivr
6868
import is_unicode_supported, non_latin_locales
69-
if not hasattr(get_msgs, 'cached_unicode_support'):
70-
get_msgs.cached_unicode_support = is_unicode_supported() # type: ignore
71-
if lang_code.split('_')[0] in non_latin_locales and not get_msgs.cached_unicode_support: # type: ignore
69+
if lang_code.split('_')[0] in non_latin_locales and not is_unicode_supported(): # type: ignore
7270
return sn(**msgs) # EN ones cuz non-Latin not supported
7371
msg_base_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}' \
7472
'/src/remove_json_keys/data/_locales'

translate-messages/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ license-files = [
2020
dependencies = [
2121
"colorama~=0.4.6 ; platform_system == 'Windows'",
2222
"find-project-root~=1.0.3",
23-
"is-unicode-supported~=1.0.0",
23+
"is-unicode-supported~=1.0.2",
2424
"json5~=0.13.0",
2525
"non-latin-locales~=1.0.1",
2626
"translate~=3.8.0",

translate-messages/src/translate_messages/cli/lib/language.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
9797

9898
if not lang_code.startswith('en'): # fetch non-English msgs from jsDelivr
9999
import is_unicode_supported, non_latin_locales
100-
if not hasattr(get_msgs, 'cached_unicode_support'):
101-
get_msgs.cached_unicode_support = is_unicode_supported() # type: ignore
102-
if lang_code.split('_')[0] in non_latin_locales and not get_msgs.cached_unicode_support: # type: ignore
100+
if lang_code.split('_')[0] in non_latin_locales and not is_unicode_supported(): # type: ignore
103101
return sn(**msgs) # EN ones cuz non-Latin not supported
104102
msg_base_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}' \
105103
'/src/translate_messages/data/_locales'

0 commit comments

Comments
 (0)