Skip to content

Commit

Permalink
Merge pull request #333 from tjake/cqlsh_fixes
Browse files Browse the repository at this point in the history
universal_newlines
  • Loading branch information
ptnapoleon committed Jul 16, 2015
2 parents 014b2f7 + 6b1406f commit 1bd9e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccmlib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def run_cqlsh(self, cmds=None, show_output=False, cqlsh_options=[], return_outpu
else:
os.execve(cqlsh, [common.platform_binary('cqlsh')] + args, env)
else:
p = subprocess.Popen([cqlsh] + args, env=env, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
p = subprocess.Popen([cqlsh] + args, env=env, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True)
for cmd in cmds.split(';'):
cmd = cmd.strip()
if cmd:
Expand Down

0 comments on commit 1bd9e02

Please sign in to comment.