Commit graph

11 commits

Author SHA1 Message Date
Alex Gaynor
50fb447173
Update CI for py3.11 release (#7743)
* Update CI for py3.11 release

* Don't use a name that's an existing enum method
2022-10-26 14:44:03 +09:00
Alex Gaynor
02783d2297
Remove explicit subclassing of object now that all classes are new-style (#6830)
As someone who first with Python in 2.4 or so, this habit is going to be hard to break.
2022-01-30 16:29:24 +00:00
Christian Heimes
1b922ed1de
Use well-defined enum representation (#6042)
Python 3.10 changed enum's object and string representation. PyCA
cryptography now uses a custom subclass of enum.Enum() will well-defined
__repr__ and __str__ from Python 3.9.

Related: https://bugs.python.org/issue40066
Fixes: https://github.com/pyca/cryptography/issues/5995
Signed-off-by: Christian Heimes <cheimes@redhat.com>
2021-05-12 08:54:23 -04:00
Paul Kehrer
343ac1344a
enable mypy over tests (#5721)
* clean mypy with tests dir

* remove most no_type_check annotations

* le sigh

* remove unneeded comments
2021-01-31 19:27:41 -05:00
Alex Gaynor
5528a3182f
Remove utils.int_from_bytes (#5609) 2020-12-09 01:16:01 -06:00
Alex Gaynor
e0477596f7
Remove __future__ import from our code (#5610) 2020-12-09 00:35:11 -06:00
Alex Gaynor
7fc93ee784
Remove unused code (#5360) 2020-07-28 16:09:43 -05:00
Alex Gaynor
d2c12683d3 Fixes #4076 - simplify the implementation of int_from_bytes on python2 (#4077)
* Fixes #4076 - simplify the implementation of int_from_bytes on python2

* whitespace

* Added a test
2018-01-10 08:17:09 -05:00
Alex Gaynor
31034a0322 Inline calls to bit_length now that it's trivial (#3966)
* Inline calls to bit_length now that it's trivial

* unused imports

* An comment
2017-10-12 10:01:29 +08:00
Alex Gaynor
0c9aed9169 Fixed #3747 -- cache extensions on x.509 objects (#3769)
* Fixed #3747 -- cache extensions on x.509 objects

* be kind to cpython, save a dict lookup

* flake8

* changelog
2017-07-08 20:50:01 -05:00
Paul Kehrer
874445aea9 fix a regression in int_from_bytes (#3316)
* fix a regression in int_from_bytes

* add a new test file
2016-12-13 12:09:35 -05:00