Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded six dependency (was used for Python 2) #90

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove more Python2 relics
  • Loading branch information
a-detiste committed Dec 13, 2023
commit 9b1f315e02a59abd7b9ba4a2cbe167ca90db0444
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 tusclient.fingerprint import fingerprint


Expand All @@ -12,7 +11,7 @@ def setUp(self):
def test_get_fingerpint(self):
with open('./LICENSE') as f:
content = f.read()
buff = six.StringIO()
buff = io.StringIO()
buff.write(content)
buff.seek(0) # reset buffer postion before reading

Expand All @@ -25,7 +24,7 @@ def test_get_fingerpint(self):
def test_unique_fingerprint(self):
with open('./LICENSE') as f:
content = f.read()
buff = six.StringIO()
buff = io.StringIO()
buff.write(content + '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