mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
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:
parent
4fbd6853f4
commit
a75a992951
5 changed files with 47 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue