From 4e2997e11a6e40b7e7ece508ef87be17cf493b04 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 19 Feb 2022 23:04:14 -0600 Subject: [PATCH] Use repr of text in Tweet.__repr__ This avoids including inconstant newlines, rather than escaped newlines, in the string representation of the Tweet object, making it more consistent --- tweepy/tweet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/tweet.py b/tweepy/tweet.py index 050c1e32c..0437a7200 100644 --- a/tweepy/tweet.py +++ b/tweepy/tweet.py @@ -67,7 +67,7 @@ def __len__(self): return len(self.text) def __repr__(self): - return f"" + return f"" def __str__(self): return self.text