Fix the invalid "+" operation between incompatible types
This commit is contained in:
parent
79e9480179
commit
32e64efd99
27
Fix-the-invalid-operation-between-incompatible-types.patch
Normal file
27
Fix-the-invalid-operation-between-incompatible-types.patch
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
||||
@ -3,7 +3,7 @@
|
||||
Summary: The libvirt virtualization API python3 binding
|
||||
Name: libvirt-python
|
||||
Version: 6.2.0
|
||||
Release: 3
|
||||
Release: 4
|
||||
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
|
||||
Patch0000: setup-use-pytest-instead-of-nose-to-run-the-test-sui.patch
|
||||
Patch0001: spec-use-pytest-instead-of-nose.patch
|
||||
@ -12,6 +12,7 @@ Patch0003: Fix-PY_SSIZE_T_CLEAN-deprecation-warning.patch
|
||||
Patch0004: Avoid-use-of-thread-function-deprecated-in-3.9.patch
|
||||
Patch0005: Replace-deprecated-PyEval_CallObject-with-PyObject_C.patch
|
||||
Patch0006: Avoid-truncating-python-version-number-when-running-.patch
|
||||
Patch0007: Fix-the-invalid-operation-between-incompatible-types.patch
|
||||
Url: http://libvirt.org
|
||||
License: LGPLv2+
|
||||
BuildRequires: libvirt-devel == %{version}
|
||||
@ -76,6 +77,9 @@ find examples -type f -exec chmod 0644 \{\} \;
|
||||
%{python3_sitearch}/*egg-info
|
||||
|
||||
%changelog
|
||||
* Fri Nov 25 2022 Qi Hao <qihao_yewu@cmss.chinamobile.com> - 6.2.0-4
|
||||
- Fix the invalid "+" operation between incompatible types
|
||||
|
||||
* Tue Mar 29 2022 yezengruan <yezengruan@huawei.com> - 6.2.0-3
|
||||
- Avoid truncating python version number when running sanity test
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user