Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
c9f16579
Verified
Commit
c9f16579
authored
Nov 06, 2021
by
Baptiste Beauplat
Browse files
Remove the unused fingerprints argument to GnuPG.get_keys_data()
parent
de80807d
Changes
1
Show whitespace changes
Inline
Side-by-side
debexpo/tools/gnupg.py
View file @
c9f16579
...
@@ -100,7 +100,7 @@ class GnuPG():
...
@@ -100,7 +100,7 @@ class GnuPG():
"""Returns true if the gpg binary is not installed or not executable."""
"""Returns true if the gpg binary is not installed or not executable."""
return
self
.
gpg_path
is
None
return
self
.
gpg_path
is
None
def
get_keys_data
(
self
,
fingerprints
=
None
):
def
get_keys_data
(
self
):
"""
"""
Returns the key object of the given GPG public key.
Returns the key object of the given GPG public key.
...
@@ -109,11 +109,8 @@ class GnuPG():
...
@@ -109,11 +109,8 @@ class GnuPG():
"""
"""
if
fingerprints
is
None
:
fingerprints
=
[]
try
:
try
:
(
output
,
status
)
=
self
.
_run
(
args
=
[
'--list-keys'
]
+
fingerprints
)
(
output
,
status
)
=
self
.
_run
(
args
=
[
'--list-keys'
])
keys
=
KeyData
.
read_from_gpg
(
output
.
splitlines
())
keys
=
KeyData
.
read_from_gpg
(
output
.
splitlines
())
return
list
(
keys
.
values
())
return
list
(
keys
.
values
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment