Skip to content

Commit

Permalink
Merge pull request #221 from The-4th-Hokage/deepsource-fix-f8b7c458
Browse files Browse the repository at this point in the history
Fix dangerous default argument
  • Loading branch information
Dhruvacube authored Oct 18, 2021
2 parents ac27357 + 85ac5ed commit 2fa7f90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minato_namikaze/bot_files/cogs/fun/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@

def pagify(
text: str,
delims: Sequence[str] = ["\n"],
delims: Sequence[str] = None,
*,
priority: bool = False,
escape_mass_mentions: bool = True,
shorten_by: int = 8,
page_length: int = 2000,
) -> Iterator[str]:
if delims is None:
delims = ["\n"]
in_text = text
page_length -= shorten_by
while len(in_text) > page_length:
Expand Down

0 comments on commit 2fa7f90

Please sign in to comment.