Skip to content

Commit

Permalink
Merge e2d1966 into fce9f7b
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Aug 19, 2015
2 parents fce9f7b + e2d1966 commit 2594e56
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 34 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Expand Up @@ -8,8 +8,6 @@ env:
- DJANGO_PACKAGE=https://github.com/django/django/archive/stable/1.7.x.zip
matrix:
include:
- python: "2.6"
env: DJANGO_PACKAGE=https://github.com/django/django/archive/stable/1.4.x.zip
- python: "2.7"
env: DJANGO_PACKAGE=https://github.com/django/django/archive/stable/1.4.x.zip
install:
Expand Down
8 changes: 3 additions & 5 deletions betterforms/changelist.py
Expand Up @@ -4,11 +4,9 @@
from django.forms.forms import pretty_name
from django.core.exceptions import ValidationError, ImproperlyConfigured
from django.db.models import Q
try:
from collections import OrderedDict
except ImportError:
# Support for Python < 2.6
from django.utils.datastructures import SortedDict as OrderedDict

from collections import OrderedDict

from django.utils import six
from django.utils.six.moves import reduce
from django.utils.http import urlencode
Expand Down
8 changes: 3 additions & 5 deletions betterforms/forms.py
Expand Up @@ -12,11 +12,9 @@
from django.forms.util import ErrorDict
from django.core.exceptions import NON_FIELD_ERRORS
from django.template.loader import render_to_string
try:
from collections import OrderedDict
except ImportError:
# Support for Python < 2.6
from django.utils.datastructures import SortedDict as OrderedDict

from collections import OrderedDict

import six # Django six is buggy with Django < 1.5
from django.utils.encoding import python_2_unicode_compatible

Expand Down
5 changes: 1 addition & 4 deletions betterforms/multiform.py
@@ -1,10 +1,7 @@
from itertools import chain
from operator import add

try:
from collections import OrderedDict
except ImportError: # Python 2.6, Django < 1.7
from django.utils.datastructures import SortedDict as OrderedDict # NOQA
from collections import OrderedDict

try:
from django.forms.utils import ErrorDict, ErrorList
Expand Down
1 change: 0 additions & 1 deletion setup.py
Expand Up @@ -37,7 +37,6 @@ def read(fname):
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
],
Expand Down
5 changes: 1 addition & 4 deletions tests/tests/forms.py
@@ -1,7 +1,4 @@
try:
from collections import OrderedDict
except ImportError: # Python 2.6, Django < 1.7
from django.utils.datastructures import SortedDict as OrderedDict # NOQA
from collections import OrderedDict

from django import forms
from django.contrib.admin import widgets as admin_widgets
Expand Down
5 changes: 1 addition & 4 deletions tests/tests/tests.py
@@ -1,7 +1,4 @@
try:
from collections import OrderedDict
except ImportError: # Python 2.6, Django < 1.7
from django.utils.datastructures import SortedDict as OrderedDict # NOQA
from collections import OrderedDict

from django.test import TestCase
from django.test.client import RequestFactory
Expand Down
9 changes: 0 additions & 9 deletions tox.ini
@@ -1,6 +1,5 @@
[tox]
envlist=
py26-dj14,
py27-dj14,
py27-dj15,
py27-dj16,
Expand Down Expand Up @@ -67,11 +66,3 @@ deps =
# https://bitbucket.org/hpk42/tox/issue/13/tox-should-reuse-tests_require
mock
six

[testenv:py26-dj14]
basepython=python2.6
deps =
Django==1.4.8
# https://bitbucket.org/hpk42/tox/issue/13/tox-should-reuse-tests_require
mock
six

0 comments on commit 2594e56

Please sign in to comment.