Handle malformed release versions in docs versions view#2935
Handle malformed release versions in docs versions view#2935adityagiri3600 wants to merge 2 commits intopython:mainfrom
Conversation
|
Is this about https://www.python.org/doc/versions/ ? What exactly is malformed? |
|
Yes. By malformed I mean an incomplete release version that still matches the current regex like If you prefer not to accept major only strings at all, I can update this to tighten parsing instead like require X.Y or X.Y.Z via a stricter regex instead of |
|
I don't think this is needed, we'll never have a simple Python X release. Python releases (with docs) are always X.Y.Z, and in the past we've had X.Y (the last was in 2011). (Pre-releases can have a1, b1, rc1 suffixes, but they don't have docs.) |
|
That makes sense, I appreciate this review. I'll close this PR. |
Description
DocsByVersionViewwhen a release name does not include at leastmajor.minorparts./doc/versions/still returns HTTP 200 when such a release exists.Closes