Repository navigation
Conversation
The bounded-cache chardet wrapper moves from pcapkit.utilities.chardet to pcapkit.corekit.chardet, with no re-export at the old path (the ruling on #1715, applied to #1712). * detect and DETECT_CACHE_SIZE live in pcapkit/corekit/chardet.py, directly under corekit rather than in corekit.fields, since Protocol.decode calls it as well as StringField. It imports nothing from pcapkit, so no cycle. * pcapkit.utilities drops detect from its imports and __all__, so pcapkit.utilities.detect and pcapkit.all.detect go too. * strings.py (import line only), protocol.py, ftp.py and httpv1.py import from the new path; the docs page moves to the corekit toctree. Tests: test_chardet_housing_1712_unit fails 6 of 7 on 4c750fe and passes on 3.8 and 3.14; the export, public-API, StringField, FTP and HTTP/1 tests pass, and Sphinx gives 63 warnings before and after. Closes #1712
3 of 13 tasks
Owner
Author
|
Verdict: GOOD TO GO at
|
3 of 13 tasks
Owner
Author
Contributor
|
Coverage: 89.35% (unit tier, Python 3.15,
Per-file detail: the |
Owner
Author
|
Holding: the owner is reconsidering where |
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please follow the guide below
You will be asked some questions, please read them carefully and answer honestly
Put an
xinto all the boxes [ ] relevant to your pull request (like that [x])Use Preview tab to see how your pull request will actually look like
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort)make testpasses, and a test case covers the change. Narrow runs only, listed below.Added a changelog entry under
docs/source/changelog/and regeneratedCHANGELOG.md, if the change is user-visible: N/A — centralised in docs(changelog): shared 1.5.0 changelog — long-lived, merges last (#610, #616, #617, #618, #620) #657What is the purpose of your pull request?
Tick the commit type your subject line carries.
fix— corrects a defectfeat— adds a featureperf— changes performance, not behaviourrefactor— changes neither behaviour nor performancetest— tests onlydocs— documentation onlyci— workflows or build toolingrelease— bumps the version or rolls up a distributionchore— anything elseDescription of your pull request and other information
Closes #1712.
pcapkit.utilities.chardetmoves topcapkit/corekit/chardet.py, with no re-export left behind (the owner's ruling on #1715).pcapkit.utilities.chardetnow raisesModuleNotFoundError.detectalso leavespcapkit.utilitiesandpcapkit.all.corekit:Protocol.decodecalls it as well asStringField, so it has to sit below both. It imports onlyfunctoolsandchardet, so it cannot close a cycle.strings.py(its import line only),protocol.py,ftp.pyandhttpv1.py, plus the tests and the all-exports guard.docs/source/pcapkit/corekit/chardet.rst. Sphinx gives 63 warnings, the same set asmain, andobjects.invlists only the new module.tests/corekit/test_chardet_housing_1712_unit.pychecks that the old path is gone and the new module stays a leaf. It fails onmainand passes on 3.8 and 3.14.