[Pkg-privacy-commits] [torbrowser-launcher] 08/48: Remove unnecessary comments from import function
Roger Shimizu
rosh at moszumanska.debian.org
Mon Sep 4 16:42:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
rosh pushed a commit to branch debian/sid
in repository torbrowser-launcher.
commit ff13666970f14a847e52399c56cb99f8635ca5b5
Author: Kajisav <dan at dephekt.net>
Date: Sat Mar 4 18:54:39 2017 -0600
Remove unnecessary comments from import function
---
torbrowser_launcher/common.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/torbrowser_launcher/common.py b/torbrowser_launcher/common.py
index 5fe5d2b..3b6c2cd 100644
--- a/torbrowser_launcher/common.py
+++ b/torbrowser_launcher/common.py
@@ -193,21 +193,15 @@ class Common:
previously and hasn't changed). ``False`` otherwise.
"""
with gpg.Context() as c:
- # change home directory of current gpg context to torbrowser's gpg home
c.set_engine_info(gpg.constants.protocol.OpenPGP, home_dir=self.paths['gnupg_homedir'])
- # store import keyfile full path
impkey = self.paths['signing_keys'][key]
- # check the keyfile exists before importing
if os.path.isfile(impkey):
c.op_import(gpg.Data(file=impkey))
else:
print _("Signing key not found")
- # store import results, if any
result = c.op_import_result()
- # if op_import_results returned results and the expected fingerprint
- # is matched in the results, return true. Otherwise return false.
if (result and self.fingerprints[key] in result.imports[0].fpr):
return True
else:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list