From 9ed28547a72fab4efa30eef3cb867b1f2165e143 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Sat, 1 Mar 2014 21:07:23 +0000 Subject: Style tweaks --- cryptography/hazmat/backends/openssl/backend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 318edec1..d4aaad76 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -235,7 +235,7 @@ class Backend(object): def _consume_errors(self): errors = [] - while 1: + while True: code = self._lib.ERR_get_error() if code == 0: break @@ -455,8 +455,8 @@ class _CipherContext(object): if not errors and isinstance(self._mode, GCM): raise InvalidTag - else: - assert errors + + assert errors if errors[0][1:] == ( self._backend._lib.ERR_LIB_EVP, -- cgit v1.2.3