From 6a4c355b611f01d3ecada0c4c68ce6e5b32e8058 Mon Sep 17 00:00:00 2001 From: Olivier Delseth Date: Thu, 16 Jan 2020 17:38:49 +0100 Subject: [PATCH] Use six libray instead of django.utils.six --- django_encrypted_filefield/constants.py | 2 +- django_encrypted_filefield/tests/test_constants.py | 2 +- requirements.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/django_encrypted_filefield/constants.py b/django_encrypted_filefield/constants.py index 6fe9ee2..9a6d5cc 100644 --- a/django_encrypted_filefield/constants.py +++ b/django_encrypted_filefield/constants.py @@ -1,6 +1,6 @@ import os +import six from django.conf import settings -from django.utils import six def _get_setting(name): diff --git a/django_encrypted_filefield/tests/test_constants.py b/django_encrypted_filefield/tests/test_constants.py index 6368b20..d9969fe 100644 --- a/django_encrypted_filefield/tests/test_constants.py +++ b/django_encrypted_filefield/tests/test_constants.py @@ -1,5 +1,5 @@ +import six from django.test import TestCase, override_settings -from django.utils import six from django_encrypted_filefield.constants import _get_setting, get_bytes try: diff --git a/requirements.txt b/requirements.txt index 47cfc43..3942cd5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ Django>=1.11 cryptography>=1.7.1 requests>=2.12.4 python-magic>=0.4.12,<0.5.0 +six>=1.0.0