Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
markus583 committed Jan 25, 2025
1 parent 751ee6d commit 2b56f10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wtpsplit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,16 +728,16 @@ def split(
strip_whitespace: bool = False,
do_paragraph_segmentation: bool = False,
split_on_input_newlines: bool = True,
treat_newlines_as_spaces=None, # Deprecated
treat_newline_as_space=None, # Deprecated
verbose: bool = False,
):
if treat_newlines_as_spaces is not None:
if treat_newline_as_space is not None:
warnings.warn(
"treat_newlines_as_spaces is deprecated and will be removed in a future release. "
"Use split_on_input_newlines with inverse bools instead.",
DeprecationWarning,
)
split_on_input_newlines = not treat_newlines_as_spaces
split_on_input_newlines = not treat_newline_as_space
if isinstance(text_or_texts, str):
return next(
self._split(
Expand Down

0 comments on commit 2b56f10

Please sign in to comment.