1 Star 0 Fork 16

shechenglong/libvirt-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Fix-the-invalid-operation-between-incompatible-types.patch 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
From 787c5e56deede97ede263c104c2e7c54af922d39 Mon Sep 17 00:00:00 2001
From: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
Date: Thu, 24 Nov 2022 19:54:14 +0800
Subject: [PATCH] Fix the invalid "+" operation between incompatible types
Change the ending position of parentheses.
Signed-off-by: qihao_yewu <qihao_yewu@cmss.chinamobile.com>
---
examples/guest-vcpus/guest-vcpu-daemon.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/guest-vcpus/guest-vcpu-daemon.py b/examples/guest-vcpus/guest-vcpu-daemon.py
index 30fcb9c..211e9d4 100755
--- a/examples/guest-vcpus/guest-vcpu-daemon.py
+++ b/examples/guest-vcpus/guest-vcpu-daemon.py
@@ -103,7 +103,7 @@ def work():
try:
conn = libvirt.open(uri)
except:
- print('Failed to connect to ' + uri + ', retry in ' + str(connectRetryTimeout)) + ' seconds'
+ print('Failed to connect to ' + uri + ', retry in ' + str(connectRetryTimeout) + ' seconds')
time.sleep(connectRetryTimeout)
continue
--
2.18.2
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dog-life/libvirt-python.git
git@gitee.com:dog-life/libvirt-python.git
dog-life
libvirt-python
libvirt-python
master

搜索帮助