Repository navigation
Commit c49e4e3
authored
Version directives, 1.1.0-1.4.1 backfill:
- Protocol: versionchanged 1.3.0. The built-in families moved onto
ProtocolBase, so a built-in protocol is not an instance of Protocol,
and a Protocol subclass registers itself in pcapkit.protocols.__proto__.
- data.misc.raw.Raw: versionchanged 1.3.3. packet left its fields when the
base data class took it over, so the constructor takes protocol and
error only.
Accuracy:
- ProtocolBase.unpack: since #1769, pack() sets __header__ only on the
call __post_init__ makes during construction, so the note names that
call and from_schema() rather than pack() in general.
- HTTP.make: Returns said bytes; it returns the versioned make()'s schema.
- pcapkit.protocols.__proto__: the values are ProtocolBase subclasses,
and the built-in ones are not Protocol subclasses.
AST guard identical on all four files; tests/project and the pack, HTTP
and docstring-contract tests pass.
Refs #1103
1 parent 2f193ab commit c49e4e3
4 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
846 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
| |||
2489 | 2490 | | |
2490 | 2491 | | |
2491 | 2492 | | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
2492 | 2500 | | |
2493 | 2501 | | |
2494 | 2502 | | |
| |||
0 commit comments