| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| with open("rfc3454.txt") as f: | ||
| data = f.readlines() | ||
| try: | ||
| data_file = open(FILENAME, encoding='utf-8') |
There was a problem hiding this comment.
encoding='utf-8' might be cargo-culting (reportedly, non-ASCII-compatible encodings exist, but aren't really tested), but it's what makeunicodedata uses, and old Pythons don't use UTF-8 by default.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks Petr! 🙏
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hi,
python#155293 adds a mkstringprep.py run to make regen-unicodedata. The existing script will download its data if a local copy is missing; mkstringprep should do the same.