prune
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
import random
|
|
||||||
import re
|
import re
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@@ -27,7 +26,6 @@ def modify_file(path: Path):
|
|||||||
|
|
||||||
def insert_importerror(path: Path):
|
def insert_importerror(path: Path):
|
||||||
file_content = path.read_text().splitlines()
|
file_content = path.read_text().splitlines()
|
||||||
# i = random.randint(0, len(file_content))
|
|
||||||
file_content.insert(0, 'raise ImportError')
|
file_content.insert(0, 'raise ImportError')
|
||||||
path.write_text('\n'.join(file_content))
|
path.write_text('\n'.join(file_content))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user