From 480fee6239bb333f5ff46bc8032a7460a1201b60 Mon Sep 17 00:00:00 2001 From: TAHRI Ahmed R Date: Mon, 12 Jul 2021 23:08:16 -0700 Subject: [PATCH] :art: Public function normalize default args are not aligned with from_bytes (#53) --- charset_normalizer/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charset_normalizer/api.py b/charset_normalizer/api.py index 0161b8ee..3cd69315 100644 --- a/charset_normalizer/api.py +++ b/charset_normalizer/api.py @@ -351,7 +351,7 @@ def from_path( return from_fp(fp, steps, chunk_size, threshold, cp_isolation, cp_exclusion, preemptive_behaviour, explain) -def normalize(path: PathLike, steps: int = 10, chunk_size: int = 512, threshold: float = 0.20, cp_isolation: List[str] = None, cp_exclusion: List[str] = None, preemptive_behaviour: bool = True) -> CharsetMatch: +def normalize(path: PathLike, steps: int = 5, chunk_size: int = 512, threshold: float = 0.20, cp_isolation: List[str] = None, cp_exclusion: List[str] = None, preemptive_behaviour: bool = True) -> CharsetMatch: """ Take a (text-based) file path and try to create another file next to it, this time using UTF-8. """