8000 Problem of python indent (like if) · Issue #138 · liftoff/pyminifier · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Problem of python indent (like if) #138 9C5B

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ciberneticaDieu opened this issue Aug 24, 2022 · 0 comments
Open

Problem of python indent (like if) #138

ciberneticaDieu opened this issue Aug 24, 2022 · 0 comments

Comments

@ciberneticaDieu
Copy link
ciberneticaDieu commented Aug 24, 2022

The pyminifier can't minify python indent like this:
if 1==1:
  print("Hi")
--pyminifier-->exec(b'if 1==1:\nF=print\n F("Hi")\n')
I run into this problem when I run the code minified with pyminifier  link
To solve the problem, you can add a tab to your Algorithm.
look like that :
exec(b'if 1==1:\nF=print\n F("Hi")\n')  --adding tab-->  exec(b'if 1==1:\n\tF=print \n\tF("Hi")')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0