Removing superfluous str() functions
authorLertsenem <lertsenem@lertsenem.com>
Wed, 12 Oct 2016 21:52:50 +0000 (23:52 +0200)
committerLertsenem <lertsenem@lertsenem.com>
Wed, 12 Oct 2016 21:52:50 +0000 (23:52 +0200)
To avoid messing up unicode non-latin characters.

This was a requested change.

rainbowstream/draw.py

index 4423c26..75e7577 100644 (file)
@@ -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