Fix typo
This commit is contained in:
parent
d01c6581dc
commit
c643308ec7
1 changed files with 2 additions and 2 deletions
|
@ -61,11 +61,11 @@ for status in timeline:
|
||||||
for word in text.split(" "):
|
for word in text.split(" "):
|
||||||
curstr += word
|
curstr += word
|
||||||
if word[-1] in "!?.":
|
if word[-1] in "!?.":
|
||||||
tstring += translate.Translator(to_lang=a[0]).translate(curstr)) + " "
|
tstring += translate.Translator(to_lang=a[0]).translate(curstr) + " "
|
||||||
curstr = ""
|
curstr = ""
|
||||||
|
|
||||||
if curstr != "":
|
if curstr != "":
|
||||||
tstring += translate.Translator(to_lang=a[0]).translate(curstr))
|
tstring += translate.Translator(to_lang=a[0]).translate(curstr)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api.update_status(tstring.encode('utf-8')[:140])
|
api.update_status(tstring.encode('utf-8')[:140])
|
||||||
|
|
Loading…
Reference in a new issue