Fix continuation character under Python 2

Recent Twitter messages show the characters \u2026 at the end of
messages needing continuation, rather than the corresponding
character (…), due to statusbot running under Python 2.

Use u\u2026 instead, si that it works in both Python 2 and Python 3.

Change-Id: I958be50bef1991edf0b3aeaf5aa1a32a48f03ef6
This commit is contained in:
Thierry Carrez 2017-12-12 17:58:07 +01:00
parent d01cfd3994
commit 177fe62586
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ class Tweet(UpdateInterface):
access_token_secret=self.access_token_secret)
def update(self, msg):
self.api.PostUpdates(msg, continuation='\u2026')
self.api.PostUpdates(msg, continuation=u'\u2026')
def alert(self, msg=None):
self.update(msg)