Skip to content

Commit

Permalink
Split up the decoding line.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Mar 5, 2014
1 parent 72f142d commit b589e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion curmit/curmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ def urltext(url):
logging.debug("$ {}".format(' '.join(str(a) for a in args)))
process = subprocess.Popen(args, stdout=subprocess.PIPE)
out = process.communicate()[0]
lines = out.decode('utf-8').strip().split('\n') # pylint: disable=E1101
text = out.decode('utf-8') # pylint: disable=E1101
lines = text.strip().split('\n')
if process.returncode == 0:
break
elif args != args2:
Expand Down

0 comments on commit b589e7e

Please sign in to comment.