For me it's really easy given your example without the end statements.

I suppose your use case is actually about much longer code, with much more
cyclomatic complexity.

I recommend you run McCabe's algorithm instead to help refactor your code.
Python-ideas mailing list --
To unsubscribe send an email to
Message archived at
Code of Conduct:

Reply via email to