golf the sfx-gz by ~27.6 kB;

* 11 kB webdeps: brotli easymde+prism instead of zopfli
* 8 kB jinja2
* 5 kB ftp
* 3 kB improve uncommenter
This commit is contained in:
ed 2023-09-13 23:21:22 +00:00
parent 4fbd6853f4
commit a75a992951
5 changed files with 47 additions and 25 deletions

View file

@ -55,6 +55,11 @@ def uncomment(fpath):
out += '"a"'
elif token_type != tokenize.COMMENT or is_legalese:
out += token_string
else:
if out.rstrip(" ").endswith("\n"):
out = out.rstrip() + "\n"
else:
out = out.rstrip()
prev_toktype = token_type
last_lineno = end_line