remove unused package
This commit is contained in:
@ -2,7 +2,6 @@ from typing import Callable
|
|||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from exception import UrlRemoverNotImplementedException
|
from exception import UrlRemoverNotImplementedException
|
||||||
from urllib.parse import urlparse, parse_qs, urlencode, urlunparse
|
from urllib.parse import urlparse, parse_qs, urlencode, urlunparse
|
||||||
from utils import find_all_string_entries
|
|
||||||
|
|
||||||
|
|
||||||
@dataclass(init=True)
|
@dataclass(init=True)
|
||||||
|
|||||||
@ -1,6 +0,0 @@
|
|||||||
def find_all_string_entries(s: str, sub: str) -> list[int]:
|
|
||||||
result = []
|
|
||||||
for i in range(len(s)-len(sub)+1):
|
|
||||||
if s[i:i+len(sub)] == sub: # в питоне точно сравнение строк лексикографически? (забыл)
|
|
||||||
result.append(i)
|
|
||||||
return result
|
|
||||||
Reference in New Issue
Block a user