prune
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user