Skip to content

Commit b1c9d3e

Browse files
committed
A minor fix after porting git-python over to PY3
It doesn't do anything (in terms of fixing an issue), but it should be more correct than what was there previously
1 parent ff76153 commit b1c9d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitdb/utils/encoding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def force_text(data, encoding="utf-8"):
2222
if isinstance(data, text_type):
2323
return data
2424

25-
if isinstance(data, string_types):
25+
if isinstance(data, bytes):
2626
return data.decode(encoding)
2727

2828
if compat.PY3:

0 commit comments

Comments
 (0)