pdoc3 / pdoc

:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects
https://pdoc3.github.io/pdoc/
GNU Affero General Public License v3.0
1.12k stars 145 forks source link

BUG: Handle URLs with non-ASCII chars w/ --http #348

Open syimyuzya opened 3 years ago

syimyuzya commented 3 years ago

Python 3 allows Unicode identifiers, so non-ASCII characters should be handled with care.

This commit fixes a bug that only happens when serving with --http (works fine when generating static HTML files). Before this fix, pydoc would raise errors if the URL contains non-ASCII module names.