Skip to content

Commit

Permalink
Remove unneeded six dependency (was used for Python 2) (#90)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Kleidl <marius@transloadit.com>
  • Loading branch information
a-detiste and Acconut authored Dec 13, 2023
1 parent 6d42811 commit 751eff0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ init-import=no

# List of qualified module names which can have objects that can redefine
# builtins.
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
redefining-builtins-modules=builtins,io


[FORMAT]
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
author='Ifedapo Olarewaju',
install_requires=[
'requests>=2.18.4',
'six>=1.11.0',
'tinydb>=3.5.0',
'aiohttp>=3.6.2'
],
Expand Down
7 changes: 3 additions & 4 deletions tests/test_fingerprint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import io
import unittest

import six

from parametrize import parametrize

from tusclient.fingerprint import fingerprint
Expand All @@ -21,7 +20,7 @@ def setUp(self):
def test_get_fingerpint(self, filename: str):
with open(filename, "rb") as f:
content = f.read()
buff = six.BytesIO()
buff = io.BytesIO()
buff.write(content)
buff.seek(0) # reset buffer postion before reading

Expand All @@ -38,7 +37,7 @@ def test_get_fingerpint(self, filename: str):
def test_unique_fingerprint(self, filename: str):
with open(filename, "rb") as f:
content = f.read()
buff = six.BytesIO()
buff = io.BytesIO()
buff.write(content + b's') # add some salt to change value
buff.seek(0) # reset buffer postion before reading

Expand Down
4 changes: 1 addition & 3 deletions tusclient/storage/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
Interface module defining a url storage API.
"""
import abc
import six


@six.add_metaclass(abc.ABCMeta)
class Storage(object):
class Storage(object, metaclass=abc.ABCMeta):
@abc.abstractmethod
def get_item(self, key):
"""
Expand Down

0 comments on commit 751eff0

Please sign in to comment.