# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1589086031 -7200
#      Sun May 10 06:47:11 2020 +0200
# Node ID b227b36b387bea0470a63d968b8be19cddbcd9e5
# Parent  13968d2283ab9247a105bad3b6bf672f4aabc384
py3: fix map() without effect on py3

diff --git a/hggit/__init__.py b/hggit/__init__.py
--- a/hggit/__init__.py
+++ b/hggit/__init__.py
@@ -278,7 +278,7 @@
     wlock = repo.wlock()
     try:
         f = vfs(GitHandler.map_file, b'wb')
-        map(f.write, new_map)
+        f.writelines(new_map)
     finally:
         wlock.release()
     ui.status(_(b'git commit map cleaned\n'))