Skip to content

Commit ab9cd36

Browse files
authored
Merge pull request #2525 from duriantaco/remove-dead-code
Remove unused _ENCODING_PATTERN regex and re import
2 parents 048e370 + d97047d commit ab9cd36

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)