Skip to content

Commit

Permalink
[autofix] Modernize Python
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Apr 25, 2022
1 parent 15fe172 commit 8104b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meta_package_manager/managers/pacman.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Pacman(PackageManager):
pre_args = ("--noconfirm",)

version_regex = r".*Pacman\s+v(?P<version>\S+)"
"""Search version right after the ``Pacman `` string.
r"""Search version right after the ``Pacman `` string.
.. code-block:: shell-session
Expand Down
2 changes: 1 addition & 1 deletion meta_package_manager/managers/zypper.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _search(self, *args):
for key, group in groupby(fresh_packages, key_func):
yield {
'id': key,
'version': max((parse_version(p['@edition']) for p in group))
'version': max(parse_version(p['@edition']) for p in group)
}

@property
Expand Down

0 comments on commit 8104b3b

Please sign in to comment.