1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-03 08:52:55 +00:00

Cleanup: remove unicode prefix, remove explicit inheritance from object (#11015)

* Address UP025: remove unicode literals from strings.

* Address UP004: class inherits from 'object'.
This commit is contained in:
Felix Fontein 2025-10-30 20:17:10 +01:00 committed by GitHub
parent f61847b116
commit 0c5466de47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 329 additions and 331 deletions

View file

@ -23,7 +23,7 @@ class BtrfsModuleException(Exception):
pass
class BtrfsCommands(object):
class BtrfsCommands:
"""
Provides access to a subset of the Btrfs command line
@ -102,7 +102,7 @@ class BtrfsCommands(object):
result = self.__module.run_command(command, check_rc=True)
class BtrfsInfoProvider(object):
class BtrfsInfoProvider:
"""
Utility providing details of the currently available btrfs filesystems
@ -174,7 +174,7 @@ class BtrfsInfoProvider(object):
raise BtrfsModuleException(f"Failed to find subvolid for mountpoint in options '{mount_options}'")
class BtrfsSubvolume(object):
class BtrfsSubvolume:
"""
Wrapper class providing convenience methods for inspection of a btrfs subvolume
@ -252,7 +252,7 @@ class BtrfsSubvolume(object):
return self.__info['parent']
class BtrfsFilesystem(object):
class BtrfsFilesystem:
"""
Wrapper class providing convenience methods for inspection of a btrfs filesystem
@ -411,7 +411,7 @@ class BtrfsFilesystem(object):
}
class BtrfsFilesystemsProvider(object):
class BtrfsFilesystemsProvider:
"""
Provides methods to query available btrfs filesystems