pyupgrade: Reformat with --py36-plus.
This includes mainly fixes of string literals using f-strings or .format(...), as well as unpacking of list comprehensions.
This commit is contained in:
parent
e27ac0ddbe
commit
9ce7c52a10
78 changed files with 356 additions and 389 deletions
|
@ -202,8 +202,8 @@ for status in statuses[::-1][: opts.limit_tweets]:
|
|||
continue # Continue with the loop for the next tweet
|
||||
|
||||
# https://twitter.com/eatevilpenguins/status/309995853408530432
|
||||
composed = "%s (%s)" % (status.user.name, status.user.screen_name)
|
||||
url = "https://twitter.com/%s/status/%s" % (status.user.screen_name, status.id)
|
||||
composed = f"{status.user.name} ({status.user.screen_name})"
|
||||
url = f"https://twitter.com/{status.user.screen_name}/status/{status.id}"
|
||||
# This contains all strings that could have caused the tweet to match our query.
|
||||
text_to_check = [status.text, status.user.screen_name]
|
||||
text_to_check.extend(url.expanded_url for url in status.urls)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue