Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
virt-manager.15254
0003-virtinst-python3-avoid-using-long-type.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-virtinst-python3-avoid-using-long-type.patch of Package virt-manager.15254
From 955c4f03d623461c4e06d9f39eea7ac305104b0a Mon Sep 17 00:00:00 2001 From: Martin Wilck <mwilck@suse.com> Date: Thu, 7 Dec 2017 11:21:21 +0100 Subject: [PATCH 3/4] virtinst: python3: avoid using long type Avoids the following error: File "/usr/share/virt-manager/virtinst/progress.py", line 484, in format_number if isinstance(number, int) or isinstance(number, long): NameError: name 'long' is not defined --- virtinst/progress.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: virt-manager-1.5.1/virtinst/progress.py =================================================================== --- virt-manager-1.5.1.orig/virtinst/progress.py +++ virt-manager-1.5.1/virtinst/progress.py @@ -482,7 +482,7 @@ def format_number(number, SI=0, space=' depth = depth + 1 number = number / step - if isinstance(number, int) or isinstance(number, int): + if isinstance(number, int): # it's an int or a long, which means it didn't get divided, # which means it's already short enough fmt = '%i%s%s'
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor