Skip to content

Commit

Permalink
Fix fastimport support on python3.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Apr 24, 2016
1 parent 9419880 commit 18884ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matrix:
- python: "pypy"
env: TEST_REQUIRE="fastimport"
- python: "3.4"
env: TEST_REQUIRE=
env: TEST_REQUIRE="fastimport"
- python: "3.5"
env: TEST_REQUIRE="fastimport"
cache:
Expand Down
4 changes: 2 additions & 2 deletions dulwich/fastexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def print_cmd(self, cmd):

def _allocate_marker(self):
self._marker_idx+=1
return b"%d" % (self._marker_idx,)
return ("%d" % (self._marker_idx,)).encode('ascii')

def _export_blob(self, blob):
marker = self._allocate_marker()
Expand All @@ -87,7 +87,7 @@ def _iter_files(self, base_tree, new_tree):
if old_path != new_path and old_path is not None:
yield commands.FileRenameCommand(old_path, new_path)
if old_mode != new_mode or old_hexsha != new_hexsha:
prefixed_marker = b':%s' % (marker,)
prefixed_marker = b':' + marker
yield commands.FileModifyCommand(
new_path, new_mode, prefixed_marker, None
)
Expand Down

0 comments on commit 18884ba

Please sign in to comment.