From d7427e9b38c577ba844217d838fdf119ebc685fb Mon Sep 17 00:00:00 2001 From: yaowei Date: Fri, 15 Jan 2016 02:06:57 +0800 Subject: [PATCH] pep8 check --- stetho/agent/api.py | 2 +- stetho/agent/common/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stetho/agent/api.py b/stetho/agent/api.py index 7978e57..f7e38a3 100644 --- a/stetho/agent/api.py +++ b/stetho/agent/api.py @@ -154,7 +154,7 @@ class AgentApi(object): iperf = iperf_driver.IPerfDriver() try: data = iperf.start_client(host, protocol='TCP', timeout=5, - parallel=None, bandwidth=None) + parallel=None, bandwidth=None) data['server_ip'] = host return agent_utils.make_response(code=0, data=data) except Exception as e: diff --git a/stetho/agent/common/utils.py b/stetho/agent/common/utils.py index 77b27ce..8afb26f 100644 --- a/stetho/agent/common/utils.py +++ b/stetho/agent/common/utils.py @@ -80,6 +80,7 @@ def kill_process_by_id(pid): os.kill(pid, signal.SIGILL) os.waitpid(pid, 0) + def get_interface(interface): """Support Centos standard physical interface, such as eth0.