Download:
child 15:26b97ecf8e16
parent 13:d4079b5ce7a0
14:2fffb6701d37
Anton Shestakov <av6@dwimlabs.net>, Sun, 15 May 2016 11:38:32 +0800
rollbot: use sleekxmpp.util.misc_ops.setdefaultencoding()

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
rollbot.py file | annotate | diff | comparison | revisions
--- a/rollbot.py Sun May 15 11:34:28 2016 +0800
+++ b/rollbot.py Sun May 15 11:38:32 2016 +0800
@@ -10,8 +10,8 @@
if sys.version_info < (3, 0):
- reload(sys)
- sys.setdefaultencoding('utf8')
+ from sleekxmpp.util.misc_ops import setdefaultencoding
+ setdefaultencoding('utf8')
class Command(object):