From ad7a4faf922db61a7137acd54b161e1d69455d10 Mon Sep 17 00:00:00 2001
From: Christian Heimes <cheimes@redhat.com>
Date: Mon, 29 Feb 2016 09:21:54 +0100
Subject: [PATCH 54/55] 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(-)

diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py
index a57dfd9bafe0827bcd3ddb9b5e1c447cf9d4e6cb..aa04582f73479df4110641e46fe096d96e93b87f 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
-- 
2.5.0

