Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-windows-ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
hg-windows-ci
Commits
33c72f05
Commit
33c72f05
authored
11 years ago
by
Wei, Elson
Browse files
Options
Downloads
Patches
Plain Diff
gpg: getkeys() removes unused returning value "err"
parent
8b312c08
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hgext/gpg.py
+2
-8
2 additions, 8 deletions
hgext/gpg.py
with
2 additions
and
8 deletions
hgext/gpg.py
+
2
−
8
View file @
33c72f05
...
...
@@ -48,7 +48,6 @@
pass
keys
=
[]
key
,
fingerprint
=
None
,
None
err
=
""
for
l
in
ret
.
splitlines
():
# see DETAILS in the gnupg documentation
# filter the logger output
...
...
@@ -70,7 +69,5 @@
keys
.
append
(
key
+
[
fingerprint
])
key
=
l
.
split
(
"
"
,
2
)
fingerprint
=
None
if
err
:
return
err
,
[]
if
key
is
not
None
:
keys
.
append
(
key
+
[
fingerprint
])
...
...
@@ -75,6 +72,6 @@
if
key
is
not
None
:
keys
.
append
(
key
+
[
fingerprint
])
return
err
,
keys
return
keys
def
newgpg
(
ui
,
**
opts
):
"""
create a new gpg instance
"""
...
...
@@ -120,10 +117,7 @@
data
=
node2txt
(
repo
,
node
,
version
)
sig
=
binascii
.
a2b_base64
(
sig
)
err
,
keys
=
mygpg
.
verify
(
data
,
sig
)
if
err
:
ui
.
warn
(
"
%s:%d %s
\n
"
%
(
fn
,
ln
,
err
))
return
None
keys
=
mygpg
.
verify
(
data
,
sig
)
validkeys
=
[]
# warn for expired key and/or sigs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment