Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Patch for issue #6009#6014
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
6813d84
6f9bf5f
ca341a5
cf20132
7724f09
6d584ad
2ab06c5
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Now “All right” on pep8online.com for the method format_eng in the class EngFormatter.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1112,11 +1112,11 @@ def format_eng(self, num): | ||
format_str = ("%%.%if %%s" % self.places) | ||
formatted = format_str % (mant, prefix) | ||
formatted = formatted.strip() | ||
if (self.unit is not "") and (prefix is self.ENG_PREFIXES[0]): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think this should be | ||
formatted = formatted + " " | ||
return formatted | ||