Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Slowroll:Build:2
virt-manager
072-Fix-pylint-3.1.0-issues.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 072-Fix-pylint-3.1.0-issues.patch of Package virt-manager
Subject: Fix pylint 3.1.0 issues From: Cole Robinson crobinso@redhat.com Sun Mar 3 10:40:46 2024 -0500 Date: Sun Mar 3 10:43:30 2024 -0500: Git: 0d3b7f673f482f80574d71a94eb80cb55d4e1ef6 Signed-off-by: Cole Robinson <crobinso@redhat.com> diff --git a/setup.py b/setup.py index cd6cd83e..d3872691 100755 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ import setuptools.command.install_egg_info # # Newer setuptools will transparently support 'import distutils' though. # That can be overridden with SETUPTOOLS_USE_DISTUTILS env variable -import distutils.command.build # pylint: disable=wrong-import-order,deprecated-module +import distutils.command.build # pylint: disable=wrong-import-order,deprecated-module,import-error SYSPREFIX = sysconfig.get_config_var("prefix") @@ -95,8 +95,7 @@ class my_build_i18n(setuptools.Command): po_mtime = os.path.getmtime(po_file) mo_mtime = (os.path.exists(mo_file) and os.path.getmtime(mo_file)) or 0 - if po_mtime > max_po_mtime: - max_po_mtime = po_mtime + max_po_mtime = max(max_po_mtime, po_mtime) if po_mtime > mo_mtime: self.spawn(cmd) @@ -246,6 +245,7 @@ class my_install(setuptools.command.install.install): Error if we weren't 'configure'd with the correct install prefix """ def finalize_options(self): + # pylint: disable=access-member-before-definition if self.prefix is None: if BuildConfig.prefix != SYSPREFIX: print("Using configured prefix=%s instead of SYSPREFIX=%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