[damned-lies] Added unicode_literals imports to support original unicode strings
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Added unicode_literals imports to support original unicode strings
- Date: Mon, 14 Nov 2016 08:22:19 +0000 (UTC)
commit 3654f9b2d57ff0feb91bdc3281d2093425d7b394
Author: Claude Paroz <claude 2xlibre net>
Date: Mon Nov 14 09:19:06 2016 +0100
Added unicode_literals imports to support original unicode strings
common/views.py | 1 +
people/views.py | 1 +
stats/utils.py | 1 +
teams/forms.py | 2 ++
teams/tests.py | 2 +-
vertimus/feeds.py | 1 +
6 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/common/views.py b/common/views.py
index b73bf33..79cb13e 100644
--- a/common/views.py
+++ b/common/views.py
@@ -16,6 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
from django.conf import settings
from django.contrib.auth import login, authenticate, logout
diff --git a/people/views.py b/people/views.py
index f83ddb8..f732f5d 100644
--- a/people/views.py
+++ b/people/views.py
@@ -16,6 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
from operator import itemgetter
diff --git a/stats/utils.py b/stats/utils.py
index bc4ff48..e0875a5 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -17,6 +17,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
import errno
import hashlib
diff --git a/teams/forms.py b/teams/forms.py
index f9c1630..024948b 100644
--- a/teams/forms.py
+++ b/teams/forms.py
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
from django import forms
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
diff --git a/teams/tests.py b/teams/tests.py
index 7f76dfa..2b7674f 100644
--- a/teams/tests.py
+++ b/teams/tests.py
@@ -180,7 +180,7 @@ class TeamTest(TeamsAndRolesTests):
self.assertEqual(len(mail.outbox), 1)
self.assertIn('Role changed', mail.outbox[0].subject)
self.assertIn(
- "Your role in the French team on example.com has been set to 'Committer'",
+ "Your role in the French team on example.com has been set to “Committer”",
mail.outbox[0].body
)
mail.outbox = []
diff --git a/vertimus/feeds.py b/vertimus/feeds.py
index 79a678d..d9fcc0b 100644
--- a/vertimus/feeds.py
+++ b/vertimus/feeds.py
@@ -16,6 +16,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import unicode_literals
from itertools import islice
from django.core import urlresolvers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]