From: Harmon Date: Sun, 20 Feb 2022 05:04:14 +0000 (-0600) Subject: Use repr of text in Tweet.__repr__ X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4e2997e11a6e40b7e7ece508ef87be17cf493b04;p=tweepy.git 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 --- diff --git a/tweepy/tweet.py b/tweepy/tweet.py index 050c1e3..0437a72 100644 --- a/tweepy/tweet.py +++ b/tweepy/tweet.py @@ -67,7 +67,7 @@ class Tweet(HashableID, DataMapping): return len(self.text) def __repr__(self): - return f"" + return f"" def __str__(self): return self.text