moving along
This commit is contained in:
1 parent
f61305d1b0
commit
788308cf44
1 file changed
+4
@@ -50,6 +50,8 @@ def convert_file(path: str, overwrite: bool = False) -> None:
|
|||||||
if not (os.path.exists(path) and os.path.isfile(path)):
|
if not (os.path.exists(path) and os.path.isfile(path)):
|
||||||
raise FileNotFoundError
|
raise FileNotFoundError
|
||||||
|
|
||||||
|
print("moving the code around")
|
||||||
|
|
||||||
with open(path, "r") as file:
|
with open(path, "r") as file:
|
||||||
soup = bs4.BeautifulSoup(file, "html.parser")
|
soup = bs4.BeautifulSoup(file, "html.parser")
|
||||||
|
|
||||||
@@ -58,6 +60,8 @@ def convert_file(path: str, overwrite: bool = False) -> None:
|
|||||||
for formatter in formatters:
|
for formatter in formatters:
|
||||||
formatter.format(soup)
|
formatter.format(soup)
|
||||||
|
|
||||||
|
print("even in between")
|
||||||
|
|
||||||
if overwrite:
|
if overwrite:
|
||||||
out_path = path
|
out_path = path
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user