Skip to content

Commit 4b847ca

Browse files
committed
Drop six from requirements
It was necessary when we had to maintain Python 2/3 compatibility. closes #43
1 parent 1332935 commit 4b847ca

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Drop Python 2 Support (#37).
66
- Drop Django 1.11 support (#40).
7+
- Remove `six` from the requirements (#43).
78

89
## 1.5.0 (2020-02-05)
910

demo/demo_chunkator/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import six
1+
from io import StringIO
22

33
from django.test import TestCase
44

@@ -146,7 +146,7 @@ def test_chunk_uuid(self):
146146
def test_chunk_missing_pk(self):
147147
with self.assertRaises(MissingPkFieldException):
148148
result = chunkator(User.objects.all().values("name"), 10)
149-
six.next(result)
149+
next(result)
150150

151151

152152
class ChunkatorWhereTest(TestCase):
@@ -157,7 +157,7 @@ def setUp(self):
157157
User.objects.create(name='ChuckNorris')
158158

159159
def test_query_log(self):
160-
query_log_output = six.StringIO()
160+
query_log_output = StringIO()
161161
qs = User.objects.all()
162162
# We loop here only to dig into the generator and force execution
163163
for item in chunkator(qs, 1, query_log=query_log_output):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def namespace_packages(project_name):
5858

5959
name = 'django-chunkator'
6060
readme = read_relative_file('README.rst')
61-
requirements = ['six', 'django']
61+
requirements = ['django']
6262
entry_points = {}
6363

6464

0 commit comments

Comments
 (0)