-
Notifications
You must be signed in to change notification settings - Fork 686
Fix several pylint warning in debugger python client #1704
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
Conversation
e30b4b7 to
d4bc0d1
Compare
|
|
||
| def disable_args(self, args): | ||
| if args != "": | ||
| print("Error: No argument expected") |
There was a problem hiding this comment.
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:
jerry-debugger/jerry-client-ws.py
Outdated
| if args != "": | ||
| print("Error: No argument expected") | ||
| return True | ||
| else: |
There was a problem hiding this comment.
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
d4bc0d1 to
2a6c34f
Compare
| self.idx_format = "I" | ||
|
|
||
| logging.debug("Compressed pointer size: %d" % (self.cp_size)) | ||
| logging.debug("Compressed pointer size: %d", self.cp_size) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
zherczeg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LaszloLango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
JerryScript-DCO-1.0-Signed-off-by: Levente Orban orbanl@inf.u-szeged.hu