softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

Pythonizer generates code with a bad indent error for an if with an empty block #96

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

Pythonizer generates code with a bad indent error for an if with an empty block. For example:

if($i) { }

generates:

if i:

It needs to put a "pass" statement in there.

snoopyjc commented 2 years ago

Fixed in 0.924: https://github.com/snoopyjc/pythonizer