Skip to content

Commit

Permalink
Python3 fix - Popen.stdout is byte stream by default
Browse files Browse the repository at this point in the history
  • Loading branch information
huwjenkins committed Apr 14, 2020
1 parent 35a1a98 commit 7024236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fragon/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def run_acorn(mtzin, xyzin, mtzout, lowres, highres, solvent, acorn_script, acor

acorn_command = shlex.split('acorn hklin %s xyzin %s hklout %s' % (mtzin, xyzin, mtzout))
with open(acorn_script, 'r') as com, open(acorn_logfile, 'w') as acorn_log:
acorn = subprocess.Popen(acorn_command, stdin=com, stdout=subprocess.PIPE)
acorn = subprocess.Popen(acorn_command, stdin=com, stdout=subprocess.PIPE, universal_newlines=True)
per_cycle = []
while True:
line = acorn.stdout.readline()
Expand Down
2 changes: 1 addition & 1 deletion fragon/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from __future__ import absolute_import, division, print_function
__version__ = '0.2.5'
__version__ = '0.2.6'

0 comments on commit 7024236

Please sign in to comment.