File 0001-remove-six-usage-784.patch of Package python-canmatrix
From e0871b086b049e4f83f89e3bcc514a679f8ec211 Mon Sep 17 00:00:00 2001
From: Alexandre Detiste <alexandre.detiste@gmail.com>
Date: Thu, 2 May 2024 08:29:25 +0200
Subject: [PATCH] remove six usage (#784)
---
setup.py | 3 ---
src/canmatrix/canmatrix.py | 4 +---
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/setup.py b/setup.py
index b8d1a3f..0e7cfee 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,6 @@ Environment :: Console
License :: OSI Approved :: BSD License
Topic :: Scientific/Engineering
Programming Language :: Python
-Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
@@ -94,9 +93,7 @@ setup(
install_requires = [
"attrs>=19.2.0",
"click",
- "enum34; python_version < '3.4'",
"importlib-metadata; python_version < '3.8'",
- "six",
"typing; python_version < '3.5'",
],
extras_require = {
diff --git a/src/canmatrix/canmatrix.py b/src/canmatrix/canmatrix.py
index 4ac5c98..f0fed0a 100644
--- a/src/canmatrix/canmatrix.py
+++ b/src/canmatrix/canmatrix.py
@@ -26,8 +26,6 @@
# TODO: Definitions should be disassembled
-from __future__ import absolute_import, division, print_function
-
import decimal
import fnmatch
import itertools
@@ -40,7 +38,7 @@ import warnings
from builtins import *
import attr
-from six.moves import zip_longest
+from itertools import zip_longest
import canmatrix.copy
import canmatrix.types
--
2.47.0