未验证 提交 305c56db 编写于 作者: X Xu Han 提交者: GitHub

Merge pull request #1323 from luckyh/qemu-python3-custom-class-calls

[qemu] Python 3: Update custom class calls
......@@ -69,7 +69,7 @@ class SparseRange(list):
out = []
items = iter(self[start:stop:step])
try:
sect_start = items.next()
sect_start = next(items)
sect_stop = sect_start
except StopIteration:
return ""
......
......@@ -212,7 +212,7 @@ def run(test, params, env):
# Assign static IP to the hotplugged interface
if params.get("assign_static_ip", "no") == "yes":
cmd = "service networking restart"
static_ip = ip_gen.next()
static_ip = next(ip_gen)
net_mask = params.get("static_net_mask", "255.255.255.0")
broadcast = params.get("static_broadcast", "10.10.10.255")
pci_id = utils_misc.get_pci_id_using_filter(vf_filter,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册