From 35acf1e17e6136b6604a6b207aeb0b41cbcf8aea Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 9 Jul 2014 09:19:48 +0200 Subject: [PATCH] from __future__ import unicode_literals --- isso/__init__.py | 2 +- isso/core.py | 2 +- isso/dispatch.py | 2 ++ isso/run.py | 2 ++ isso/utils/__init__.py | 2 +- isso/utils/parse.py | 2 +- isso/views/comments.py | 2 ++ isso/wsgi.py | 2 ++ setup.py | 3 ++- 9 files changed, 14 insertions(+), 5 deletions(-) diff --git a/isso/__init__.py b/isso/__init__.py index afac2b4..f2745c6 100644 --- a/isso/__init__.py +++ b/isso/__init__.py @@ -25,7 +25,7 @@ # # Isso – a lightweight Disqus alternative -from __future__ import print_function +from __future__ import print_function, unicode_literals import pkg_resources dist = pkg_resources.get_distribution("isso") diff --git a/isso/core.py b/isso/core.py index 3cdadf5..af85054 100644 --- a/isso/core.py +++ b/isso/core.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- -from __future__ import print_function +from __future__ import print_function, unicode_literals import io import time diff --git a/isso/dispatch.py b/isso/dispatch.py index 14441e2..f376733 100644 --- a/isso/dispatch.py +++ b/isso/dispatch.py @@ -1,5 +1,7 @@ # -*- encoding: utf-8 -*- +from __future__ import unicode_literals + import os import logging diff --git a/isso/run.py b/isso/run.py index 94bdc04..68f2950 100644 --- a/isso/run.py +++ b/isso/run.py @@ -1,5 +1,7 @@ # -*- encoding: utf-8 -*- +from __future__ import unicode_literals + import os from isso import make_app diff --git a/isso/utils/__init__.py b/isso/utils/__init__.py index 9a50a79..1dfb517 100644 --- a/isso/utils/__init__.py +++ b/isso/utils/__init__.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- -from __future__ import division +from __future__ import division, unicode_literals import pkg_resources werkzeug = pkg_resources.get_distribution("werkzeug") diff --git a/isso/utils/parse.py b/isso/utils/parse.py index 6fdc837..6923307 100644 --- a/isso/utils/parse.py +++ b/isso/utils/parse.py @@ -1,5 +1,5 @@ -from __future__ import print_function +from __future__ import print_function, unicode_literals import datetime from itertools import chain diff --git a/isso/views/comments.py b/isso/views/comments.py index edd3c5e..04910b7 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -1,5 +1,7 @@ # -*- encoding: utf-8 -*- +from __future__ import unicode_literals + import re import cgi import time diff --git a/isso/wsgi.py b/isso/wsgi.py index 35e06e0..37605c3 100644 --- a/isso/wsgi.py +++ b/isso/wsgi.py @@ -1,5 +1,7 @@ # -*- encoding: utf-8 -*- +from __future__ import unicode_literals + import socket try: diff --git a/setup.py b/setup.py index f0d8958..f5baca1 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -import sys +from __future__ import unicode_literals +import sys from setuptools import setup, find_packages requires = ['itsdangerous', 'misaka', 'html5lib']