projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d5d9a
)
Use repr of text in Tweet.__repr__
author
Harmon
<Harmon758@gmail.com>
Sun, 20 Feb 2022 05:04:14 +0000
(23:04 -0600)
committer
Harmon
<Harmon758@gmail.com>
Sun, 20 Feb 2022 05:04:14 +0000
(23:04 -0600)
This avoids including inconstant newlines, rather than escaped newlines, in the string representation of the Tweet object, making it more consistent
tweepy/tweet.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/tweet.py
b/tweepy/tweet.py
index 050c1e32c00eafa1cd4cfd6f415104f40b6b8d8b..0437a720004e1bcbf3f49b5ccd3f5287ac47f46d 100644
(file)
--- 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"<Tweet id={self.id} text={
self.text
}>"
+ return f"<Tweet id={self.id} text={
repr(self.text)
}>"
def __str__(self):
return self.text