Browse Source

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
changes/61/527461/1
Thierry Carrez 4 years ago
parent
commit
177fe62586
  1. 2
      statusbot/bot.py

2
statusbot/bot.py

@ -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)

Loading…
Cancel
Save