[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -1,5 +1,7 @@
import unicodedata
from __future__ import annotations
import sys
import unicodedata
# HFS Plus uses decomposed UTF-8
@ -35,7 +37,7 @@ def filesys_decode(path):
def try_encode(string, enc):
"turn unicode encoding into a functional routine"
'turn unicode encoding into a functional routine'
try:
return string.encode(enc)
except UnicodeEncodeError: