| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Extensions that don't start with a dot will never be found by methods/functions that act on the registry, so we should stop users from mistakenly adding them. The one exception is the empty string extension. This could be in use to detect absent extensions, so instead of raising a ValueError we emit a warning.
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good, thank you!
Sorry, something went wrong.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
| Back | FazBrowse Home | New Git URL |
As suggested by @encukou at #2895 (comment), we should deprecate this before raising a backwards-incompatible ValueError.
This PR is the first step to add a deprecation warning.
📚 Documentation preview 📚: https://cpython-previews--128638.org.readthedocs.build/