Skip to content

Commit 0495e00

Browse files
committed
unicode_literals everything, add tox configuration for running the tests with Python 3.2
1 parent e670e11 commit 0495e00

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+171
-19
lines changed

feincms/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import absolute_import, unicode_literals
2+
13
VERSION = (1, 9, 1)
24
__version__ = '.'.join(map(str, VERSION))
35

feincms/_internal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
http://mail.python.org/pipermail/python-dev/2008-January/076194.html
55
"""
66

7+
from __future__ import absolute_import, unicode_literals
8+
79

810
def monkeypatch_method(cls):
911
"""

feincms/admin/filterspecs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Authors: Marinho Brandao <marinho at gmail.com>
55
# Guilherme M. Gondim (semente) <semente at taurinus.org>
66

7+
from __future__ import absolute_import, unicode_literals
8+
79
from django.contrib.admin.filters import (
810
FieldListFilter, ChoicesFieldListFilter)
911
from django.utils import six

feincms/admin/item_editor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# coding=utf-8
33
# ------------------------------------------------------------------------
44

5+
from __future__ import absolute_import, unicode_literals
6+
57
import copy
68
import logging
79
import re
@@ -122,7 +124,7 @@ def get_feincms_inlines(self, model, request):
122124

123125
name = '%sFeinCMSInline' % content_type.__name__
124126
# TODO: We generate a new class every time. Is that really wanted?
125-
inline_class = type(name, (inline,), attrs)
127+
inline_class = type(str(name), (inline,), attrs)
126128
inlines.append(inline_class)
127129
return inlines
128130

feincms/admin/tree_editor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# coding=utf-8
33
# ------------------------------------------------------------------------
44

5+
from __future__ import absolute_import, unicode_literals
6+
57
from functools import reduce
68
import json
79
import logging

feincms/content/application/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Third-party application inclusion support.
33
"""
44

5+
from __future__ import absolute_import, unicode_literals
6+
57
from email.utils import parsedate
68
from time import mktime
79
from random import SystemRandom

feincms/content/comments/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
``django.contrib.comments`` application.
1313
"""
1414

15+
from __future__ import absolute_import, unicode_literals
16+
1517
from django.contrib import comments
1618
from django.contrib.comments.views.comments import post_comment
1719
from django.db import models

feincms/content/contactform/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
``form=YourClass`` argument to the ``create_content_type`` call.
66
"""
77

8+
from __future__ import absolute_import, unicode_literals
9+
810
from django import forms
911
from django.core.mail import send_mail
1012
from django.db import models

feincms/content/file/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
instead.
44
"""
55

6+
from __future__ import absolute_import, unicode_literals
7+
68
import os
79

810
from django.db import models

feincms/content/image/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
instead.
44
"""
55

6+
from __future__ import absolute_import, unicode_literals
7+
68
import os
79

810
from django.db import models

0 commit comments

Comments
 (0)