Closed
Bug 1155968
Opened 9 years ago
Closed 9 years ago
xpcom/idl-parser/ code should follow the flake8 convention
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla42
People
(Reporter: Sylvestre, Assigned: bkudryavtsev, Mentored)
References
Details
(Whiteboard: [good first bug][lang=Python])
Attachments
(13 files, 3 obsolete files)
2.53 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
16.75 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
818 bytes,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
1.56 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
6.90 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
4.13 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
3.92 KB,
patch
|
khuey
:
review-
|
Details | Diff | Splinter Review |
3.69 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
3.33 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
1.27 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
5.35 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
1.63 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
1.00 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
Run on the Firefox source code, the following line shows a bunch of warnings. Nothing critical but it would be nice to remove them: $ flake8 --max-line-length=1000 xpcom/idl-parser/ That should be pretty easy to fix for a beginner in Python. One patch per kind of bug.
Assignee | ||
Comment 1•9 years ago
|
||
I would like to work on this.
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8600669 -
Flags: review?(dougt)
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8600669 [details] [diff] [review] bug1155968_removeflake8warnings.diff Sorry Boris but as said "One patch per kind of bug."
Attachment #8600669 -
Flags: review?(dougt)
Assignee | ||
Comment 4•9 years ago
|
||
Oh, I see. Will fix. Should I have separate patches for separate files?
Reporter | ||
Comment 5•9 years ago
|
||
(In reply to Boris Kudryavtsev [:bkudryavtsev] from comment #4) > Oh, I see. Will fix. Should I have separate patches for separate files? No, one patch per kind of error.
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8600669 -
Attachment is obsolete: true
Attachment #8601289 -
Flags: review?(dougt)
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8601290 -
Flags: review?(dougt)
Assignee | ||
Comment 8•9 years ago
|
||
Attachment #8601293 -
Flags: review?(dougt)
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8601295 -
Flags: review?(dougt)
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8601819 -
Flags: review?(dougt)
Comment 11•9 years ago
|
||
khuey is probably a better reviewer for XPIDL stuff.
Assignee | ||
Updated•9 years ago
|
Attachment #8601289 -
Flags: review?(dougt) → review?(khuey)
Assignee | ||
Updated•9 years ago
|
Attachment #8601290 -
Flags: review?(dougt) → review?(khuey)
Assignee | ||
Updated•9 years ago
|
Attachment #8601293 -
Flags: review?(dougt) → review?(khuey)
Assignee | ||
Updated•9 years ago
|
Attachment #8601295 -
Flags: review?(dougt) → review?(khuey)
Assignee | ||
Updated•9 years ago
|
Attachment #8601819 -
Flags: review?(dougt) → review?(khuey)
Attachment #8601289 -
Flags: review?(khuey) → review+
Attachment #8601293 -
Flags: review?(khuey) → review+
Attachment #8601295 -
Flags: review?(khuey) → review+
Attachment #8601819 -
Flags: review?(khuey) → review+
Comment on attachment 8601290 [details] [diff] [review] rev1 - bug1155968_missingblanklines.diff Review of attachment 8601290 [details] [diff] [review]: ----------------------------------------------------------------- FWIW I think the PEP 8 two lines thing here is kind of silly, but ok, consistency wins.
Attachment #8601290 -
Flags: review?(khuey) → review+
Thanks for the patches Boris!
Assignee | ||
Comment 14•9 years ago
|
||
There are a couple more patches to come. Don't mark this one fixed just yet.
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8603753 -
Flags: review?(khuey)
Attachment #8603753 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 16•9 years ago
|
||
Attachment #8604968 -
Flags: review?(khuey)
Comment on attachment 8604968 [details] [diff] [review] rev1 - bug1155968_indentations.diff Review of attachment 8604968 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/idl-parser/header.py @@ +436,1 @@ > fd.write('\\') Er, I think you reindented the wrong thing here.
Attachment #8604968 -
Flags: review?(khuey) → review-
Comment on attachment 8604991 [details] [diff] [review] rev2 - bug1155968_indentations.diff Review of attachment 8604991 [details] [diff] [review]: ----------------------------------------------------------------- Yup.
Attachment #8604991 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 20•9 years ago
|
||
Attachment #8606076 -
Flags: review?(khuey)
Attachment #8606076 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 21•9 years ago
|
||
Attachment #8606676 -
Flags: review?(khuey)
Attachment #8606676 -
Flags: review?(khuey) → review+
Reporter | ||
Comment 22•9 years ago
|
||
Boris, you can now request the checkin. Just add the keyword checkin-needed in the bug.
Assignee: nobody → boriskk.work
Assignee | ||
Comment 23•9 years ago
|
||
Attachment #8608493 -
Flags: review?(khuey)
Assignee | ||
Comment 24•9 years ago
|
||
Attachment #8608494 -
Flags: review?(khuey)
Assignee | ||
Comment 25•9 years ago
|
||
Attachment #8608495 -
Flags: review?(khuey)
Attachment #8608495 -
Flags: review?(khuey) → review+
Comment on attachment 8608494 [details] [diff] [review] rev1 - bug1155968_initfix.diff Review of attachment 8608494 [details] [diff] [review]: ----------------------------------------------------------------- Why is this ok? What happens if no iface is found?
Attachment #8608494 -
Flags: review?(khuey) → review-
Attachment #8608493 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 27•9 years ago
|
||
Attachment #8613086 -
Flags: review?(khuey)
Comment on attachment 8613086 [details] [diff] [review] rev2 - bug1155968_initfix.diff Review of attachment 8613086 [details] [diff] [review]: ----------------------------------------------------------------- This is still going to throw an exception, because None has no location property.
Attachment #8613086 -
Flags: review?(khuey) → review-
Assignee | ||
Comment 29•9 years ago
|
||
I am confused on how to fix this. The PEP8 warning I get is: F821 undefined name 'c'.
(In reply to Boris Kudryavtsev [:bkudryavtsev] from comment #29) > I am confused on how to fix this. The PEP8 warning I get is: F821 undefined > name 'c'. Yeah, it's complaining that if we take that exception branch we'll try to get c.location before c is defined. You should just remove the c.location parameter from that IDLError instantiation.
Assignee | ||
Comment 31•9 years ago
|
||
Attachment #8608494 -
Attachment is obsolete: true
Attachment #8613086 -
Attachment is obsolete: true
Attachment #8614238 -
Flags: review?(khuey)
Attachment #8614238 -
Flags: review?(khuey) → review+
Reporter | ||
Comment 32•9 years ago
|
||
Boris, I think you can now request the checkin. For this, add checkin-needed in the keyword area.
Flags: needinfo?(boriskk.work)
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 34•9 years ago
|
||
(In reply to Boris Kudryavtsev [:bkudryavtsev] from comment #33) > Should this be run through try? yeah can we get a try run here ? thanks!
Flags: needinfo?(boriskk.work)
Keywords: checkin-needed
Assignee | ||
Comment 35•9 years ago
|
||
I am currently unable to do a try run. Can someone else do it? Thanks.
Flags: needinfo?(boriskk.work)
This doesn't need to go through try. Just land it.
Keywords: checkin-needed
Comment 37•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaaff73823bf https://hg.mozilla.org/integration/mozilla-inbound/rev/775890dd46d3 https://hg.mozilla.org/integration/mozilla-inbound/rev/e575d9410377 https://hg.mozilla.org/integration/mozilla-inbound/rev/e13499df8cc9 https://hg.mozilla.org/integration/mozilla-inbound/rev/fc3b998c1c6f https://hg.mozilla.org/integration/mozilla-inbound/rev/48dd997a3d58 https://hg.mozilla.org/integration/mozilla-inbound/rev/441f01e12616 https://hg.mozilla.org/integration/mozilla-inbound/rev/72c9859de2cb https://hg.mozilla.org/integration/mozilla-inbound/rev/b27206136b3f https://hg.mozilla.org/integration/mozilla-inbound/rev/9b481796d64b https://hg.mozilla.org/integration/mozilla-inbound/rev/8277d0a1f7b4 https://hg.mozilla.org/integration/mozilla-inbound/rev/70839bf0a04e
Keywords: checkin-needed
Comment 38•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/eaaff73823bf https://hg.mozilla.org/mozilla-central/rev/775890dd46d3 https://hg.mozilla.org/mozilla-central/rev/e575d9410377 https://hg.mozilla.org/mozilla-central/rev/e13499df8cc9 https://hg.mozilla.org/mozilla-central/rev/fc3b998c1c6f https://hg.mozilla.org/mozilla-central/rev/48dd997a3d58 https://hg.mozilla.org/mozilla-central/rev/441f01e12616 https://hg.mozilla.org/mozilla-central/rev/72c9859de2cb https://hg.mozilla.org/mozilla-central/rev/b27206136b3f https://hg.mozilla.org/mozilla-central/rev/9b481796d64b https://hg.mozilla.org/mozilla-central/rev/8277d0a1f7b4 https://hg.mozilla.org/mozilla-central/rev/70839bf0a04e
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•