File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ def get_file_hash(path, block_size=2 ** 20):
113
113
def make_external_conversion_command (cmd ):
114
114
def convert (old , new ):
115
115
cmdline = cmd (old , new )
116
- pipe = subprocess .Popen (
117
- cmdline , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
116
+ pipe = subprocess .Popen (cmdline , universal_newlines = True ,
117
+ stdout = subprocess .PIPE , stderr = subprocess .PIPE )
118
118
stdout , stderr = pipe .communicate ()
119
119
errcode = pipe .wait ()
120
120
if not os .path .exists (new ) or errcode :
@@ -224,8 +224,8 @@ def verify(filename):
224
224
verifier = verifiers .get (extension , None )
225
225
if verifier is not None :
226
226
cmd = verifier (filename )
227
- pipe = subprocess .Popen (
228
- cmd , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
227
+ pipe = subprocess .Popen (cmd , universal_newlines = True ,
228
+ stdout = subprocess .PIPE , stderr = subprocess .PIPE )
229
229
stdout , stderr = pipe .communicate ()
230
230
errcode = pipe .wait ()
231
231
if errcode != 0 :
You can’t perform that action at this time.
0 commit comments