Closed Bug 1720951 Opened 3 years ago Closed 3 years ago

Remove remaining "ensure_bytes()" and "ensure_unicode()" usages

Categories

(Firefox Build System :: Mach Core, task)

task

Tracking

(firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: mhentges, Unassigned)

References

Details

(Keywords: good-first-bug)

Attachments

(5 files)

We have a bunch of ensure_bytes() and ensure_unicode() usages that can be simplified to either:

  • Always just use the value directly
  • Always convert the value to bytes/str

This will simplify each instance from bytes|str to either always bytes or always str.

Keywords: good-first-bug
See Also: → 1717651
Assignee: nobody → surajeet310

Removed dependency of 'ensure_bytes()' from mozbuild/util.py and did inline the usage of 'ensure_bytes()' .

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/58a418d302fa
Removed instances of 'ensure_bytes()' from js/src/builtin r=mhentges
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Keywords: leave-open

Inlined the usage of 'ensure_bytes()' and removed dependency of 'ensure_bytes()' from util.py .

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/919c542f5b8b
Removed instances of 'ensure_bytes()' from python/mozbuild/mozbuild r=mhentges

Inlined the usages of 'ensure_bytes()' and 'ensure_unicode()' .

Inlined the usage of 'ensure_bytes()' .

Since the functions 'ensure_bytes()' and 'ensure_unicode()' were unused, hence removed.

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/22fcf5699b7c
Removed unused 'ensure_bytes()' and 'ensure_unicode()' from runxpcshelltests.py r=mhentges
Flags: needinfo?(surajeet310)

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

Assignee: surajeet310 → nobody
Status: REOPENED → NEW

I think this bug should be closed since a bunch of patches were landed by Surajeet Das. A new bug can be created for any remaining work.

Flags: needinfo?(mhentges)

The majority of the ensure_...() functions were handled, so that's a good call. Thanks Mathew.

Status: NEW → RESOLVED
Closed: 3 years ago3 years ago
Flags: needinfo?(mhentges)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: