Skip to content

Commit d97047d

Browse files
committed
Remove unused _ENCODING_PATTERN regex and re import
1 parent 048e370 commit d97047d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

isort/io.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Defines any IO utilities used by isort"""
22

33
import dataclasses
4-
import re
54
import tokenize
65
from collections.abc import Callable, Iterator
76
from contextlib import contextmanager
@@ -11,8 +10,6 @@
1110

1211
from isort.exceptions import UnsupportedEncoding
1312

14-
_ENCODING_PATTERN = re.compile(rb"^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+)")
15-
1613

1714
@dataclasses.dataclass(frozen=True)
1815
class File:

0 commit comments

Comments
 (0)