Skip to content

Commit

Permalink
Remove dependency on six.
Browse files Browse the repository at this point in the history
We no longer support Python 2, so remove the compatibility shim.
  • Loading branch information
bravesirrobin81 authored and arrowd committed Jul 14, 2024
1 parent 6e2b0a0 commit 38d0416
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions iocage_lib/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import six

from ctypes import CDLL
from ctypes.util import find_library

Expand All @@ -20,6 +18,6 @@ def load_ctypes_library(name, signatures):


def ensure_unicode_str(value):
if not isinstance(value, six.text_type):
if not isinstance(value, str):
value = value.decode()
return value
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ coloredlogs>=9.0
netifaces>=0.10.8
GitPython>=2.1.11
dnspython>=1.15.0
six>=1.15.0
jsonschema>=3.2.0
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
'GitPython>=2.1.11',
'netifaces>=0.10.8',
'dnspython>=1.15.0',
'six>=1.15.0',
'jsonschema>=3.2.0'
],
entry_points={'console_scripts': ['iocage = iocage_lib:cli']},
Expand Down

0 comments on commit 38d0416

Please sign in to comment.