Skip to content

Commit

Permalink
Non-Pythonic name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Papadopoulos committed Mar 3, 2017
1 parent 117d4c6 commit 66a3abb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/netutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def ssh_run_command(ssh_client, command_to_run, prefix='', lines_queue=None,
"""

channel = ssh_client.get_transport().open_session()
bufferSize = 8*1024
buffersize = 8*1024
channel_timeout = None
channel.setblocking(1)
channel.set_combine_stderr(True)
Expand All @@ -402,7 +402,7 @@ def ssh_run_command(ssh_client, command_to_run, prefix='', lines_queue=None,
channel_output = ''
while not channel.exit_status_ready():
data = ''
data = channel.recv(bufferSize).decode('utf-8')
data = channel.recv(buffersize).decode('utf-8')
while data is not '':
channel_output += data
if print_flag:
Expand All @@ -412,7 +412,7 @@ def ssh_run_command(ssh_client, command_to_run, prefix='', lines_queue=None,
lines_queue.put(line)
if type(lines_queue) is type(gevent.queue.Queue()):
gevent.sleep(0.01)
data = channel.recv(bufferSize).decode('utf-8')
data = channel.recv(buffersize).decode('utf-8')

channel_exit_status = channel.recv_exit_status()
channel.close()
Expand Down

0 comments on commit 66a3abb

Please sign in to comment.