diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-09-24 14:04:43 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-24 12:09:49 -0400 |
commit | 7fa74c8f099fa8e6fedd95ce8a203b46fa9186c5 (patch) | |
tree | 27da3e1323165f4dfba13a378f2eb0d271a22e3b /src/leap/keymanager/__init__.py | |
parent | 4a090d6e405415607f9c811a7961f8dc0cdd2af0 (diff) |
[style] fix pep8 warnings
Diffstat (limited to 'src/leap/keymanager/__init__.py')
-rw-r--r-- | src/leap/keymanager/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/leap/keymanager/__init__.py b/src/leap/keymanager/__init__.py index f00e049a..01f3b6eb 100644 --- a/src/leap/keymanager/__init__.py +++ b/src/leap/keymanager/__init__.py @@ -22,7 +22,9 @@ import fileinput import os import sys import tempfile + from leap.common import ca_bundle + from ._version import get_versions try: @@ -146,7 +148,8 @@ class KeyManager(object): def __del__(self): try: - created_tmp_combined_ca_bundle = self._combined_ca_bundle not in [ca_bundle.where(), self._ca_cert_path] + created_tmp_combined_ca_bundle = self._combined_ca_bundle not in \ + [ca_bundle.where(), self._ca_cert_path] if created_tmp_combined_ca_bundle: os.remove(self._combined_ca_bundle) except OSError: @@ -164,7 +167,7 @@ class KeyManager(object): elif not self._ca_cert_path: return leap_ca_bundle - tmp_file = tempfile.NamedTemporaryFile(delete=False) # delete when keymanager expires + tmp_file = tempfile.NamedTemporaryFile(delete=False) with open(tmp_file.name, 'w') as fout: fin = fileinput.input(files=(leap_ca_bundle, self._ca_cert_path)) |