Skip to content

Commit

Permalink
🎨 Public function normalize default args are not aligned with from_by…
Browse files Browse the repository at this point in the history
…tes (#53)
  • Loading branch information
Ousret authored Jul 13, 2021
1 parent bee6866 commit 480fee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charset_normalizer/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down

0 comments on commit 480fee6

Please sign in to comment.