beets icon indicating copy to clipboard operation
beets copied to clipboard

Replace `py3_path`, `bytestring_path`, `cpu_count` implementations with builtins

Open snejus opened this issue 1 month ago • 2 comments

  • Replace py3_path by standard os.fsdecode
  • Use native os.cpu_count
  • Replace bytestring_path with os.fsencode

Description

These functions had been written before builtins achieving the same have been made available (in Python 3.2 and 3.4).

Now that they are available though, this PR updates the codebase to use builtin implementations rather than the custom ones.

snejus avatar May 06 '24 07:05 snejus