fixed code
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class ProfanityDictionary:
|
||||
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
file_path: str
|
||||
@@ -20,7 +18,6 @@ class ProfanityDictionary:
|
||||
|
||||
path = Path(file_path)
|
||||
|
||||
|
||||
if not path.exists():
|
||||
raise FileNotFoundError(
|
||||
f"Profanity dictionary not found: {file_path}"
|
||||
@@ -39,8 +36,6 @@ class ProfanityDictionary:
|
||||
if line.strip()
|
||||
}
|
||||
|
||||
|
||||
|
||||
def contains(
|
||||
self,
|
||||
word: str
|
||||
|
||||
Reference in New Issue
Block a user