Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 style cleanup (part 2) #3280

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

pajod
Copy link
Contributor

@pajod pajod commented Aug 17, 2024

Cleanup, follow-up to #3189 - There is a change of config default in here, but for our workers that only impacts who sees the warning about the ignored setting. Rest is intended to be no-op.

  • Unfinished consideration: InvalidChunkSize (and most of the meaning of NoMoreData and ChunkMissingTerminator, though that needs to be split first) subclassing IOError is just wrong, replacing with OSError does not fix that. Input reading worked perfectly fine, its the content of that input that our parser found issues with. Maybe some of it could re-use the built-in EOFError, but only while avoiding confusing unexpected SSL tunnel shutdown with previously announced end of input.

  • Suggested merge order: merge last

git ls-files -z "tests/requests/**.py" | xargs -0 sed -i -e '/^cfg = Config()$/d' -e '/^from gunicorn.config import Config$/d' --
git ls-files -z "tests/requests/**.py" | xargs -0 sed -z -i -e "s/''"'/""/g' -e 's/"\n\+}/",\n}/g' -e 's/)\n\+    \]/),\n    ]/g' --
git ls-files -z "tests/requests/**.py" | xargs -0 python3 -m black --skip-string-normalization --line-length=120 --target-version=py37 --
git restore tests/requests/valid/{001..027}.py tests/requests/valid/{025_line,padding_01,100}.py tests/requests/invalid/{002,003,chunked_*,018,version_01,version_02,003c}.py tests/requests/invalid/{006..009}.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant