Open Bug 2031350 Opened 7 months ago Updated 3 months ago

Fix a ruff warning in dom/base/usecounters.py

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=python])

Attachments

(1 obsolete file)

Filing as a good first bug to learn workflows.

dom/base/usecounters.py
  42:17  warning  Use format specifiers instead of percent format  UP031 (ruff)

Link to the code:
https://searchfox.org/mozilla-central/source/dom/base/usecounters.py#42

To run the linter:

./mach lint -W -l ruff dom/base/usecounters.py

As the change is trivial, it is just to learn how to contribute to Firefox.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Mentor: sledru
Assignee: nobody → Yogeshdangal66
Status: NEW → ASSIGNED

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: Yogeshdangal66 → nobody
Status: ASSIGNED → NEW
Attachment #9587345 - Attachment is obsolete: true

:Sylvestre this warning has already been resolved.

./mach lint -W -l ruff dom/base/usecounters.py
✖ 0 problems (0 errors, 0 warnings, 0 fixed)

Flags: needinfo?(sledru)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: