mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 12:26:52 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
72ad6dc953
commit
f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue