Skip to content

Commit ffe3b13

Browse files
blucappisar
authored andcommitted
Drop dependency on python-six
In Ubuntu and Debian we no longer ship Python 2.7, so the translation module is an unnecessary dependency. In Python 3 the text type is always 'str', so it is not needed. Simply set the value to 'unicode' on Python2, and 'str' on Python3.
1 parent 8b66d6f commit ffe3b13

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

bindings/python/gi/overrides/Modulemd.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@
1616

1717
import functools
1818

19-
from six import text_type
2019
from gi.repository import GLib
2120

2221
import datetime
22+
import sys
23+
24+
if sys.version_info[0] >= 3:
25+
text_type = str
26+
else:
27+
text_type = unicode # noqa: F821
2328

2429
Modulemd = get_introspection_module("Modulemd")
2530

0 commit comments

Comments
 (0)