diff options
author | Marti <marti@juffo.org> | 2016-08-26 04:26:31 +0300 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-08-26 09:26:31 +0800 |
commit | 40f1999de74a3bf44f000486a0ce1a58c82827e6 (patch) | |
tree | d7c3cb6ea4f0b3846cc8685669c75d963f43db64 /tests/test_interfaces.py | |
parent | eafc4ee77f92d4e6e208351fd17e9cb1ae045677 (diff) | |
download | cryptography-40f1999de74a3bf44f000486a0ce1a58c82827e6.tar.gz cryptography-40f1999de74a3bf44f000486a0ce1a58c82827e6.tar.bz2 cryptography-40f1999de74a3bf44f000486a0ce1a58c82827e6.zip |
Allow passing iterators where collections are expected (#3078)
Iterators can only be enumerated once, breaking code like this in
Python 3 for example:
san = SubjectAlternativeName(map(DNSName, lst))
This is also a slight behavior change if the caller modifies the list
after passing it to the constructor, because input lists are now copied.
Which seems like a good thing.
Also:
* Name now checks that attributes elements are of type NameAttribute
* NoticeReference now allows notice_numbers to be any iterable
Diffstat (limited to 'tests/test_interfaces.py')
0 files changed, 0 insertions, 0 deletions