This commit is contained in:
John Lancaster
2024-08-12 22:09:56 -05:00
parent 4e26d1b4ef
commit 1358da1e60

View File

@@ -1,6 +1,5 @@
import asyncio
import logging
import random
import re
from pathlib import Path
@@ -27,7 +26,6 @@ def modify_file(path: Path):
def insert_importerror(path: Path):
file_content = path.read_text().splitlines()
# i = random.randint(0, len(file_content))
file_content.insert(0, 'raise ImportError')
path.write_text('\n'.join(file_content))