add readme and driver

This commit is contained in:
ppwwyyxx
2014-11-21 14:37:18 +08:00
parent 83040b8a8d
commit 436717da10
3 changed files with 36 additions and 13 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: Msg.py
# Date: Fri Nov 21 14:08:33 2014 +0800
# Date: Fri Nov 21 14:10:21 2014 +0800
# Author: Yuxin Wu <[email protected]>
from datetime import datetime
@@ -62,7 +62,7 @@ class WeChatMsg(object):
self.createTime,
ensure_unicode(self.msg_str())).encode('utf-8')
if self.imgPath:
ret = u"{}|img:{}".format(ensure_unicode(ret), self.imgPath)
ret = u"{}|img:{}".format(ensure_unicode(ret.strip()), self.imgPath)
return ret.encode('utf-8')
else:
return ret