-
Notifications
You must be signed in to change notification settings - Fork 267
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
Test error inputs handling, fix few bugs #119
Conversation
Codecov Report
@@ Coverage Diff @@
## master #119 +/- ##
==========================================
+ Coverage 93.77% 95.35% +1.58%
==========================================
Files 2 3 +1
Lines 610 646 +36
==========================================
+ Hits 572 616 +44
+ Misses 38 30 -8
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
OK with you, @neelgala? |
Just a reminder. I have a follower patch to remove duplicate code (fields check and extraction should be a single operation) |
made one comment.. all else looks good.. sorry for the delay - thanks @pavelkryukov for all the work here :D |
@neelgala, sorry, don't see your comment. Have you submitted your review? |
parse.py
Outdated
@@ -13,6 +13,11 @@ | |||
pp = pprint.PrettyPrinter(indent=2) | |||
logging.basicConfig(level=logging.INFO, format='%(levelname)s:: %(message)s') | |||
|
|||
def parse_constant(string): | |||
base = 16 if 'x' in string else 2 if 'b' in string else 10 |
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.
this entire function can just be return int(string,0)
0 automatically indicates python to select the base based on the string prefix
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.
@pavelkryukov here is my 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.
thanks, fixed
No description provided.