# HG changeset patch
# User Manuel Jacob <me@manueljacob.de>
# Date 1588499588 -7200
#      Sun May 03 11:53:08 2020 +0200
# Node ID f5b322889bded576313b92ff641c238893d97f18
# Parent  2ea7881bddbcd2621cb2f329e2ef2b395bc1908f
py3: decode string in fakeui.warn()

diff --git a/hggit/hg2git.py b/hggit/hg2git.py
--- a/hggit/hg2git.py
+++ b/hggit/hg2git.py
@@ -36,7 +36,11 @@
     ...     def configbool(*args):
     ...         return False
     ...     def warn(self, s):
-    ...         print(s)
+    ...         if pycompat.ispy3:
+    ...             import sys
+    ...             print(s.decode(sys.__stdout__.encoding))
+    ...         else:
+    ...             print(s)
     >>> u = fakeui()
     >>> audit_git_path(u, b'foo/git~100/wat')
     ... # doctest: +ELLIPSIS