From: Lertsenem Date: Wed, 12 Oct 2016 21:52:50 +0000 (+0200) Subject: Removing superfluous str() functions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd4ac7c79b24da9be4137de562d92093f8b3654d;p=rainbowstream.git Removing superfluous str() functions To avoid messing up unicode non-latin characters. This was a requested change. --- diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index 4423c26..75e7577 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -1066,8 +1066,8 @@ def format_quote(tweet): Quoting format """ # Retrieve info - screen_name = str( tweet['user']['screen_name'] ) - text = str( tweet['text'] ) + screen_name = tweet['user']['screen_name'] + text = tweet['text'] tid = str( tweet['id'] ) # Validate quote format