- add remove-six.patch to drop dependency on python-six OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=56
22 lines
690 B
Diff
22 lines
690 B
Diff
Index: guessit-3.8.0/guessit/jsonutils.py
|
|
===================================================================
|
|
--- guessit-3.8.0.orig/guessit/jsonutils.py
|
|
+++ guessit-3.8.0/guessit/jsonutils.py
|
|
@@ -4,7 +4,6 @@ JSON Utils
|
|
"""
|
|
import json
|
|
|
|
-from six import text_type
|
|
from rebulk.match import Match
|
|
|
|
class GuessitEncoder(json.JSONEncoder):
|
|
@@ -16,6 +15,6 @@ class GuessitEncoder(json.JSONEncoder):
|
|
if isinstance(o, Match):
|
|
return o.advanced
|
|
if hasattr(o, 'name'): # Babelfish languages/countries long name
|
|
- return text_type(o.name)
|
|
+ return str(o.name)
|
|
# pragma: no cover
|
|
- return text_type(o)
|
|
+ return str(o)
|