Patchwork [1,of,5] convert: remove superfluous setbinary() calls from debugsvnlog

login
register
mail settings
Submitter Yuya Nishihara
Date Nov. 2, 2016, 12:02 p.m.
Message ID <5a7ca4f3983a0cd1573c.1478088133@mimosa>
Download mbox | patch
Permalink /patch/17272/
State Accepted
Headers show

Comments

Yuya Nishihara - Nov. 2, 2016, 12:02 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1443850153 -32400
#      Sat Oct 03 14:29:13 2015 +0900
# Node ID 5a7ca4f3983a0cd1573c3da450516b6c6a6277e0
# Parent  bb586966818986131068280bfd95fc96fbdaaa0d
# EXP-Topic stdio
convert: remove superfluous setbinary() calls from debugsvnlog

a3fe91b4f6eb made standard streams set to binary mode globally.

Patch

diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
--- a/hgext/convert/subversion.py
+++ b/hgext/convert/subversion.py
@@ -164,8 +164,6 @@  def debugsvnlog(ui, **opts):
         raise error.Abort(_('debugsvnlog could not load Subversion python '
                            'bindings'))
 
-    util.setbinary(sys.stdin)
-    util.setbinary(sys.stdout)
     args = decodeargs(sys.stdin.read())
     get_log_child(sys.stdout, *args)