summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-02-29 09:21:54 +0100
committerChristian Heimes <cheimes@redhat.com>2016-02-29 16:11:13 +0100
commitb36717fbe92875a1c6ae7f255514a17639b25976 (patch)
tree7c0a6823e6512d94eed6c0c8e818c731d84dc3b5 /base
parent6c82500627b5c2e0602312faefba97fbe15044b9 (diff)
downloadpki-b36717fbe92875a1c6ae7f255514a17639b25976.tar.gz
pki-b36717fbe92875a1c6ae7f255514a17639b25976.tar.xz
pki-b36717fbe92875a1c6ae7f255514a17639b25976.zip
Fix pylint 1.5 violation in new pki.cli.pkcs12 module
************* Module pki.cli.pkcs12 E:160,43: Value 'cert_info' doesn't support membership test (unsupported-membership-test)
Diffstat (limited to 'base')
-rw-r--r--base/common/python/pki/cli/pkcs12.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py
index a57dfd9ba..aa04582f7 100644
--- a/base/common/python/pki/cli/pkcs12.py
+++ b/base/common/python/pki/cli/pkcs12.py
@@ -148,11 +148,9 @@ class PKCS12ImportCLI(pki.cli.CLI):
# determine cert types
with open(output_file, 'r') as f:
+ cert_info = {}
- cert_info = None
-
- for line in f.readlines():
-
+ for line in f:
match = re.match(r' Nickname: (.*)$', line)
if match:
# store previous cert