From b36717fbe92875a1c6ae7f255514a17639b25976 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 29 Feb 2016 09:21:54 +0100 Subject: 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) --- base/common/python/pki/cli/pkcs12.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'base/common/python') 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 -- cgit