Skip to content

Commit

Permalink
Use Django's bundled six util
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed Feb 20, 2014
1 parent f26d958 commit fbae877
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"""

import re
import six
import subprocess
from operator import itemgetter

from django.utils import six

re_line = re.compile(six.b(r'(\d+)\s+(\d+)\s+[^<]+$'))
re_author = re.compile(six.b(r'.+<(.+)>$'))

Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/alias.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import six
from django.utils import six

from easy_thumbnails.conf import settings

Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/files.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import six
from django.utils import six

from django.core.files.base import File, ContentFile
from django.core.files.storage import (
Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/processors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import six
from django.utils import six

try:
from PIL import Image, ImageChops, ImageFilter
Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/templatetags/thumbnail.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import re
import six
from django.utils import six

from django.template import (
Library, Node, VariableDoesNotExist, TemplateSyntaxError)
Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/tests/source_generators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import base64
import six
from django.utils import six

try:
from cStringIO import cStringIO as BytesIO
Expand Down
2 changes: 1 addition & 1 deletion easy_thumbnails/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import hashlib
import inspect
import math
import six
from django.utils import six

from django.utils.functional import LazyObject
from django.utils import timezone
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ def read_files(*filenames):
packages=find_packages(),
include_package_data=True,
install_requires=[
'django>=1.4',
'django>=1.4.2',
'pillow',
'six',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit fbae877

Please sign in to comment.