Skip to content

Commit

Permalink
Fix issues found in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SethMMorton committed Sep 1, 2022
1 parent ffda841 commit 24b6b81
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include LICENSE
include CHANGELOG.md
include tox.ini
include RELEASING.md
recursive-include mypy_stubs *.pyi
graft dev
graft docs
graft natsort
Expand Down
3 changes: 1 addition & 2 deletions mypy_stubs/icu.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from typing import overload

@overload
def Locale() -> str: ...
@overload
Expand Down
1 change: 0 additions & 1 deletion natsort/compat/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def get_decimal_point() -> str:
sep = icu.DecimalFormatSymbols.kDecimalSeparatorSymbol
return icu.DecimalFormatSymbols(get_icu_locale()).getSymbol(sep)


except ImportError:
import locale
from locale import strxfrm
Expand Down
1 change: 0 additions & 1 deletion natsort/natsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,6 @@ def os_sort_keygen(
lambda x: tuple(map(_winsort_key, _split_apply(x, key))),
)


else:

# For UNIX-based platforms, ICU performs MUCH better than locale
Expand Down

0 comments on commit 24b6b81

Please sign in to comment.