fix positional argument follows keyword argument

This commit is contained in:
Clinton Hall 2019-06-20 10:58:57 +12:00 committed by GitHub
commit 5993009fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -928,7 +928,7 @@ def transcode_directory(dir_name):
result = 1 # set result to failed in case call fails. result = 1 # set result to failed in case call fails.
try: try:
if isinstance(file, string_types): if isinstance(file, string_types):
proc = subprocess.Popen(command, stdout=bitbucket, subprocess.PIPE) proc = subprocess.Popen(command, stdout=bitbucket, stderr=subprocess.PIPE)
else: else:
img, data = next(iteritems(file)) img, data = next(iteritems(file))
proc = subprocess.Popen(command, stdout=bitbucket, stderr=subprocess.PIPE, stdin=subprocess.PIPE) proc = subprocess.Popen(command, stdout=bitbucket, stderr=subprocess.PIPE, stdin=subprocess.PIPE)