未验证 提交 43f6c70f 编写于 作者: J Jiangxinz 提交者: GitHub

Add 'self' parameters to function Cluster::update_pods, use variable name...

Add 'self' parameters to function Cluster::update_pods, use variable name 'cur_proxy' instead of 'proxy' in file 'tools/get_pr_ut.py' (#33377)

* undefined variable proxy

* Cluster::update_pods lacks of parameter self
上级 64666534
......@@ -166,7 +166,7 @@ class Cluster(object):
def __ne__(self, cluster):
return not self.__eq__(cluster)
def update_pods(cluster):
def update_pods(self, cluster):
self.pods = copy.copy(cluster.pods)
def trainers_nranks(self):
......
......@@ -112,7 +112,7 @@ class PRChecker(object):
print(e)
print(
'PREC download {} error, retry {} time(s) after {} secs.[proxy_option={}]'.
format(url, ix, ix * 10, proxy))
format(url, ix, ix * 10, cur_proxy))
continue
else:
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册