summaryrefslogtreecommitdiff
path: root/git/index/fun.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-05 10:09:51 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-05 10:09:51 +0100
commitbc8c91200a7fb2140aadd283c66b5ab82f9ad61e (patch)
tree54f8b4e09ae36f465da25ecd16d6377a2a8414a8 /git/index/fun.py
parentae2ff0f9d704dc776a1934f72a339da206a9fff4 (diff)
downloadgitpython-py3.tar.gz
Fixed io types to make tests work on PY2 once again.py3
Now it's about going through PY3 issues
Diffstat (limited to 'git/index/fun.py')
-rw-r--r--git/index/fun.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index 004f992e..0e49ae8d 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -12,7 +12,7 @@ from stat import (
S_IFGITLINK = S_IFLNK | S_IFDIR # a submodule
-from io import StringIO
+from io import BytesIO
from git.util import IndexFileSHA1Writer
from git.exc import UnmergedEntriesError
@@ -218,7 +218,7 @@ def write_tree_from_cache(entries, odb, sl, si=0):
# END for each entry
# finally create the tree
- sio = StringIO()
+ sio = BytesIO()
tree_to_stream(tree_items, sio.write)
sio.seek(0)