From b8c8775d13c9e58e14585be6dfccc79d11c7be7c Mon Sep 17 00:00:00 2001 From: Danial Behzadi Date: Tue, 1 Jun 2021 05:08:34 +0430 Subject: [PATCH] take the int part --- tgchannel2toot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgchannel2toot.py b/tgchannel2toot.py index 9c5ae71..5a41440 100644 --- a/tgchannel2toot.py +++ b/tgchannel2toot.py @@ -47,7 +47,7 @@ def splitext(text: str): limit = config.character_limit result = [ text[limit*part:limit*(part+1)] - for part in range(len(text)/limit+1)] + for part in range(len(text)//limit+1)] return result