Skip to content

Problem of python indent (like if) #138

@ciberneticaDieu

Description

@ciberneticaDieu

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")')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions