projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98533a6
)
Force output to UTF8 to work on fbsd
author
Magnus Hagander
<magnus@hagander.net>
Wed, 7 Oct 2009 12:05:46 +0000
(14:05 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Wed, 7 Oct 2009 12:05:46 +0000
(14:05 +0200)
posttotwitter.py
patch
|
blob
|
blame
|
history
diff --git
a/posttotwitter.py
b/posttotwitter.py
index 636a72207aa1b92651de9009b36815462c8d0c1e..b0048c058b27c82105de804ad52c894d37d791fb 100755
(executable)
--- a/
posttotwitter.py
+++ b/
posttotwitter.py
@@
-93,7
+93,7
@@
class PostToTwitter:
c.execute("UPDATE planet.posts SET twittered='t' WHERE id=%(id)s", { 'id': post[0] })
self.db.commit()
- print
"Twittered: %s" % msg
+ print
unicode("Twittered: %s" % msg).encode('utf8')
# Trim a post to the length required by twitter, so we don't fail to post