Fixed an issue in fernet where the wrong exception would occur on an all-nulls input.

Also switched a few tests to not generate a key
fixed already :-)

On Sun, Oct 19, 2014 at 10:35 PM, Paul Kehrer <notifications@github.com>
wrote:

> In cryptography/fernet.py:
>
> > @@ -90,7 +90,7 @@ def decrypt(self, token, ttl=None):
> >          except (TypeError, binascii.Error):
> >              raise InvalidToken
> >
> > -        if six.indexbytes(data, 0) != 0x80:
> > +        if not data or  six.indexbytes(data, 0) != 0x80:
>
> There are two spaces after or.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pyca/cryptography/pull/1421/files#r19068600>.
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084