Skip to content

Conversation

@polaroi8d
Copy link
Contributor

@polaroi8d polaroi8d commented Mar 30, 2017

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu

@polaroi8d polaroi8d force-pushed the pep8_debugger branch 3 times, most recently from e30b4b7 to d4bc0d1 Compare March 30, 2017 17:46

def disable_args(self, args):
if args != "":
print("Error: No argument expected")
Copy link
Contributor

@robertsipka robertsipka Mar 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use this form: if args:

if args != "":
print("Error: No argument expected")
return True
else:
Copy link
Contributor

@robertsipka robertsipka Mar 30, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The else statement is unnecessary, you could return with false at the end of the function.

JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu
self.idx_format = "I"

logging.debug("Compressed pointer size: %d" % (self.cp_size))
logging.debug("Compressed pointer size: %d", self.cp_size)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the problem with this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no problem, but this is the PEP8 logging standard.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit efa7975 into jerryscript-project:master Mar 31, 2017
@polaroi8d polaroi8d deleted the pep8_debugger branch March 31, 2017 08:48
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

Successfully merging this pull request may close these issues.

4 participants