Skip to content
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

empty blocks with comments #47

Open
yucer opened this issue Sep 27, 2016 · 0 comments
Open

empty blocks with comments #47

yucer opened this issue Sep 27, 2016 · 0 comments

Comments

@yucer
Copy link

yucer commented Sep 27, 2016

Here is another case. Is there anyway we can help to fix them ?

if (a > 1)
{
  # comment from java code (maybe a todo)
}
else
{
   result = 4
}

becomes in Python:

if a > 1:
  # comment from java code (maybe a todo)
else
   result = 4

That construction is not valid in Python, it needs at less a pass sentence besides the comments. This way:

if a > 1:
  # comment from java code (maybe a todo)
  pass
else
  result = 4
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