python-hyper / h2

HTTP/2 State-Machine based protocol implementation
https://h2.readthedocs.io/en/stable
MIT License
963 stars 151 forks source link

Fix repr() checks for Python 3.11 #1274

Closed jspricke closed 1 year ago

jspricke commented 1 year ago

In Python 3.11, repr() was modified, this commit fixes the assertions to match the new repr() behavior.

Fix #1268 Same as #1269 but with support for older Python versions.