Package: python3-jsonext
Version: 0.4.2-3
Severity: normal
Dear maintainer,
This project is inactive for about 10 years.
This is not a problem by itself if it is still usefull.
What is not usefull by itself is "six";
we are trying to slowly remove it.
Please consider this trival patch
& remove python3-six from build-depends.
Greetings
Alexandre
--- a/jsonext/wrappers.py
+++ b/jsonext/wrappers.py
@@ -2,7 +2,6 @@
import datetime
import re
-import six
class DecoderWrapper(object):
@@ -10,7 +9,7 @@
self._decoder = decoder
def _convert_dict(self, v):
- return {k: self._convert(v) for k, v in six.iteritems(v)}
+ return {k: self._convert(v) for k, v in v.items()}
def _convert_list(self, v):
return [self._convert(v) for v in iter(v)]
@@ -35,9 +34,9 @@
return self._convert_dict(value)
if isinstance(value, list):
return self._convert_list(value)
- if isinstance(value, six.text_type):
+ if isinstance(value, str):
return self._convert_text(value)
- if isinstance(value, six.integer_types):
+ if isinstance(value, int):
return self._convert_integer(value)
if isinstance(value, float):
return self._convert_float(value)
--- a/setup.py
+++ b/setup.py
@@ -22,4 +22,4 @@
url='http://github.com/mbr/jsonext',
license='MIT',
packages=find_packages(exclude=['tests']),
- install_requires=['six', 'arrow'], )
+ install_requires=['arrow'], )