diff options
author | Christian Heimes <cheimes@redhat.com> | 2016-02-29 09:21:54 +0100 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2016-02-29 16:11:13 +0100 |
commit | b36717fbe92875a1c6ae7f255514a17639b25976 (patch) | |
tree | 7c0a6823e6512d94eed6c0c8e818c731d84dc3b5 /base/common | |
parent | 6c82500627b5c2e0602312faefba97fbe15044b9 (diff) | |
download | pki-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/common')
-rw-r--r-- | base/common/python/pki/cli/pkcs12.py | 6 |
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 |