From 5b7f8c9646d9e4d054f739d62d431d65a5697ec1 Mon Sep 17 00:00:00 2001 From: Daniel Hiepler Date: Tue, 12 Apr 2016 17:24:57 +0200 Subject: [PATCH] added unicode-literals forward-compatibility module --- bot.py | 3 +++ session.py | 3 +++ threadutils.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/bot.py b/bot.py index 2555fcb..201e542 100644 --- a/bot.py +++ b/bot.py @@ -1,3 +1,6 @@ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + __author__ = "Steffen Vogel" __copyright__ = "Copyright 2015, Steffen Vogel" __license__ = "GPLv3" diff --git a/session.py b/session.py index c0dc01f..e7a6e8a 100644 --- a/session.py +++ b/session.py @@ -1,3 +1,6 @@ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + __author__ = "Steffen Vogel" __copyright__ = "Copyright 2015, Steffen Vogel" __license__ = "GPLv3" diff --git a/threadutils.py b/threadutils.py index 59e7d51..cee0929 100644 --- a/threadutils.py +++ b/threadutils.py @@ -1,3 +1,6 @@ +# use unicode encoding for all literals by default (for python2.x) +from __future__ import unicode_literals + import Queue import threading