python-hyper / h11

A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
https://h11.readthedocs.io/
MIT License
490 stars 62 forks source link

- Patch for issue #80 #81

Closed alanbchristie closed 5 years ago

alanbchristie commented 5 years ago

This change adds the current state when raising LocalProtocolError("not in a reusable state"), which significantly simplifies the debugging of the cause of the exception.

codecov-io commented 5 years ago

Codecov Report

Merging #81 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #81   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          20     20           
  Lines         926    926           
  Branches      173    173           
=====================================
  Hits          926    926
Impacted Files Coverage Δ
h11/_state.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 836d95d...f2dbbc7. Read the comment docs.

pgjones commented 5 years ago

Added in dc3e462e62ddc8ebe1713f3d91cc68e96054dea5 (slightly differently)