We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff76153 commit b1c9d3eCopy full SHA for b1c9d3e
gitdb/utils/encoding.py
@@ -22,7 +22,7 @@ def force_text(data, encoding="utf-8"):
22
if isinstance(data, text_type):
23
return data
24
25
- if isinstance(data, string_types):
+ if isinstance(data, bytes):
26
return data.decode(encoding)
27
28
if compat.PY3:
0 commit comments